note 80975 modified in function.pg-escape-string by felipe

From: Date: Wed, 12 Mar 2008 21:55:19 +0000
Subject: note 80975 modified in function.pg-escape-string by felipe
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-136984@lists.php.net to get a copy of this message
If your database is a UTF-8 database, you will run into problems trying to add some data into your database... for securty issues and/or compatability you may need to use the: utf_encode() (http://php.net/utf8-encode) function. for example: <?php $my_data = pg_escape_string(utf8_encode($_POST['my_data'])); ?> --was-- If your database is a UTF-8 database, you will run into problems trying to add some data into your database... for securty issues and/or compatability you may need to use the: utf_encode() (http://php.net/utf8-encode) function. for example: <?php $my_data = pg_escape_string(utf_encode($_POST['my_data'])); ?> http://php.net/manual/en/function.pg-escape-string.php

« previous php.notes (#136984) next »