note 96993 added to function.mysql-escape-string

From: Date: Fri, 26 Mar 2010 13:05:07 +0000
Subject: note 96993 added to function.mysql-escape-string
Groups: php.notes 
Request: Send a blank email to php-notes+get-167432@lists.php.net to get a copy of this message
it seems the function changes the character encoding of the string. I get utf-8 encoded string and my mysql database is set to utf-8 as well. If i just write the data to the database it works perfectly fine, if i use this function, it changes the encoding and therefore stores the wrong characters. Seems like a bug to me. ---- Server IP: 212.124.37.9 Probable Submitter: 82.198.199.65 ---- Manual Page -- http://www.php.net/manual/en/function.mysql-escape-string.php Edit -- https://master.php.net/note/edit/96993 Del: integrated -- https://master.php.net/note/delete/96993/integrated Del: useless -- https://master.php.net/note/delete/96993/useless Del: bad code -- https://master.php.net/note/delete/96993/bad+code Del: spam -- https://master.php.net/note/delete/96993/spam Del: non-english -- https://master.php.net/note/delete/96993/non-english Del: in docs -- https://master.php.net/note/delete/96993/in+docs Del: other reasons-- https://master.php.net/note/delete/96993 Reject -- https://master.php.net/note/reject/96993 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#167432) next »