#37879 [NEW]: Wrong Character Encoding, Loses Characters

From: Date: Wed, 21 Jun 2006 22:31:21 +0000
Subject: #37879 [NEW]: Wrong Character Encoding, Loses Characters
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-98641@lists.php.net to get a copy of this message
From: captainqwark at gmail dot com Operating system: Windows XP PHP version: 5.1.4 PHP Bug Type: MSSQL related Bug description: Wrong Character Encoding, Loses Characters Description: ------------ Retrieving data from a mssql database using ISO-8859-1 internaly returns wrong characters for french characters. Reproduce code: --------------- $mssql = mssql_connect("-","-","-"); if(!$mssql){ echo "connect failed\r\n"; } else { echo "connect successful\r\n"; } mssql_select_db("contacts",$mssql); $selectSQL = "SELECT first_name FROM contacts ORDER BY username"; $result = mssql_query($selectSQL, $mssql); while ($row = mssql_fetch_array($result)) { echo $row['first_name']; } Expected result: ---------------- Josée Actual result: -------------- Jos‚ -- Edit bug report at http://bugs.php.net/?id=37879&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=37879&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=37879&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=37879&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=37879&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=37879&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=37879&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=37879&r=needscript Try newer version: http://bugs.php.net/fix.php?id=37879&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=37879&r=support Expected behavior: http://bugs.php.net/fix.php?id=37879&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=37879&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=37879&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=37879&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=37879&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=37879&r=dst IIS Stability: http://bugs.php.net/fix.php?id=37879&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=37879&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=37879&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=37879&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=37879&r=mysqlcfg

« previous php.bugs (#98641) next »