note 93830 added to function.mysql-client-encoding

From: Date: Fri, 02 Oct 2009 02:33:51 +0000
Subject: note 93830 added to function.mysql-client-encoding
Groups: php.notes 
Request: Send a blank email to php-notes+get-161211@lists.php.net to get a copy of this message
Thank you msieniek !! I had the same problem with polish letters, when someone entered ł, ³ ended up in mysql instead of &#322; , when somene wrote ż instead of &#380; mysql had ¿ ... Placing this in my connect function fixes the problem. <? mysql_query("SET CHARACTER SET latin2"); mysql_query("SET NAMES latin2"); ?> Once again dziękuje !! ---- Server IP: 82.177.164.100 Probable Submitter: 76.15.234.52 ---- Manual Page -- http://www.php.net/manual/en/function.mysql-client-encoding.php Edit -- https://master.php.net/note/edit/93830 Del: integrated -- https://master.php.net/note/delete/93830/integrated Del: useless -- https://master.php.net/note/delete/93830/useless Del: bad code -- https://master.php.net/note/delete/93830/bad+code Del: spam -- https://master.php.net/note/delete/93830/spam Del: non-english -- https://master.php.net/note/delete/93830/non-english Del: in docs -- https://master.php.net/note/delete/93830/in+docs Del: other reasons-- https://master.php.net/note/delete/93830 Reject -- https://master.php.net/note/reject/93830 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#161211) next »