#32705 [NEW]: special characters

From: Date: Thu, 14 Apr 2005 17:08:31 +0000
Subject: #32705 [NEW]: special characters
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-77538@lists.php.net to get a copy of this message
From: agapater at yahoo dot com Operating system: Windows Xp PHP version: 5.0.4 PHP Bug Type: MySQL related Bug description: special characters Description: ------------ I have just updated to php 5.0.4 Somehow, the romanian special characters(ãîºþâ) retrieved from mysql are not recognized, instead I get only "?". I haven't changed anything in the database, I use a similar php.ini This is not a html encoding problem, I use the right encoding: iso-8859-2 Also, <?php print "ãîºþâ"; ?> works just fine I didn't have this problem in php 5.0.2 or any other previous versions Reproduce code: --------------- I think this is irrelevant, but here it is: $sqlEv = mysql_query("select eveniment from epi_foto_eveniment order by id_eveniment desc limit 0,4"); while($row = mysql_fetch_array($sqlEv)) { print ".$row['eveniment']."<br>\r\n"; } Expected result: ---------------- Întâlnirea tinerilor din Protopopiatul Marghita Searã de priveghere pentru Sfântul Pãrinte la Sf. Gheorghe Marº pentru Sfântul Pãrinte Actual result: -------------- ?nt?lnirea tinerilor din Protopopiatul Marghita Sear? de priveghere pentru Sf?ntul P?rinte la Sf. Gheorghe Mar? pentru Sf?ntul P?rinte -- Edit bug report at http://bugs.php.net/?id=32705&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=32705&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=32705&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=32705&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=32705&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=32705&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=32705&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=32705&r=needscript Try newer version: http://bugs.php.net/fix.php?id=32705&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=32705&r=support Expected behavior: http://bugs.php.net/fix.php?id=32705&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=32705&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=32705&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=32705&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=32705&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=32705&r=dst IIS Stability: http://bugs.php.net/fix.php?id=32705&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=32705&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=32705&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=32705&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=32705&r=mysqlcfg

« previous php.bugs (#77538) next »