maletin
maletin

Reputation: 585

decodeURIComponent for postgres

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

Answers (1)

Michael Krelin - hacker
Michael Krelin - hacker

Reputation: 143229

You're not making yourself too clear, but maybe this will be of interest for you.

Upvotes: 2

Related Questions