decodeURIComponent for postgres
- by maletin
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.