note 86151 added to function.mysql-set-charset

From: Date: Mon, 06 Oct 2008 08:33:17 +0000
Subject: note 86151 added to function.mysql-set-charset
Groups: php.notes 
Request: Send a blank email to php-notes+get-145079@lists.php.net to get a copy of this message
I need to revoke most of my post below. What I found out afterwards is this: 1. if you do not use mysql_set_char mysql will NOT do any translations and thus store a utf8-character-byte as is. If you then retrieve this byte from the db and output it in a utf8 page it will show just fine BUT if other apps query this byte (expecting to find a latin1 byte) they will go wrong. 2. the 'bug' mentioned before only occurs if you use a ucase or lcase function in your statement (like: latin1_col = ucase('utf8 string') Hope this helps, Ronald ---- Server IP: 89.248.170.61 Probable Submitter: 164.140.159.143 ---- Manual Page -- http://www.php.net/manual/en/function.mysql-set-charset.php Edit -- https://master.php.net/note/edit/86151 Del: integrated -- https://master.php.net/note/delete/86151/integrated Del: useless -- https://master.php.net/note/delete/86151/useless Del: bad code -- https://master.php.net/note/delete/86151/bad+code Del: spam -- https://master.php.net/note/delete/86151/spam Del: non-english -- https://master.php.net/note/delete/86151/non-english Del: in docs -- https://master.php.net/note/delete/86151/in+docs Del: other reasons-- https://master.php.net/note/delete/86151 Reject -- https://master.php.net/note/reject/86151 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#145079) next »