decodeURIComponent for postgres

Posted by maletin on Stack Overflow See other posts from Stack Overflow or by maletin
Published on 2009-09-17T13:01:06Z Indexed on 2010/03/31 16:03 UTC
Read the original article Hit count: 313

Filed under:
|
|

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.

© Stack Overflow or respective owner

Related posts about postgresql

Related posts about encoding