Reputation: 585
I use decodeURIComponent and encodeURIComponent in Javascript. Before I store this data in a UTF-8-PostgreSQL-Database, I should decode them:
$my_data = pg_escape_string(utf8_encode($_POST['my_data']));
I'm looking for a PostgreSQL-Function to convert Javascript-Encoded Data.
Upvotes: 0
Views: 1420
Reputation: 143229
You're not making yourself too clear, but maybe this will be of interest for you.
Upvotes: 2