Problems with PDO mysql

From: Date: Mon, 06 Mar 2006 17:37:08 +0000
Subject: Problems with PDO mysql
Groups: php.db 
Request: Send a blank email to php-db+get-41388@lists.php.net to get a copy of this message
Hello, I have made this little example for explain my problem : <? $pdo = new PDO('mysql:host=192.168.69.20;dbname=Released', 'Web', 'Master99'); $data = '/enabled=boolean:true;/description=string:"-bévènements"'; $pdo->query("Update Test set data ='" . $data . "';"); ?> If i execute this scripts from php cli the result will be : /enabled=boolean:true;/description=string:"évènements" If i execute this scripts from apache server the result will be : /enabled=boolean?;/description=string:"évènements" It’s seem that is the é and è character that make this strange change because if i remove this character the result will be : /enabled=boolean:true;/description=string:"vnements" I don’t found were the charset is converted or where is the problems …. For information php cli and apache module are build with the same options. I need help please. I hope i ask my question in the good mailing list. See You Soon. Nicolas.

« previous php.db (#41388) next »