Bug #13873 Updated: wddx_*() functions only handle ascii

From: Date: Mon, 12 Nov 2001 15:19:22 +0000
Subject: Bug #13873 Updated: wddx_*() functions only handle ascii
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-70247@lists.php.net to get a copy of this message
ID: 13873 User updated by: johan@ekenberg.se Reported By: johan@ekenberg.se Old Status: Feedback Status: Open Bug Type: WDDX related Operating System: Linux PHP Version: 4.0.6 New Comment: Nowhere in the docs is it mentioned that wddx-functions are affected by locale settings. But experimenting with setlocale() reveals that it is indeed a locale issue: <?php print wddx_serialize_value("xyzåäö") . "\n"; setlocale(LC_ALL, "sv_SE"); print wddx_serialize_value("xyzåäö"); ?> produces: <wddxPacket version='1.0'><header/><data><string>xyz<char code='FFFFFFE5'/><char code='FFFFFFE4'/><char code='FFFFFFF6'/></string></data></wddxPacket> <wddxPacket version='1.0'><header/><data><string>xyzåäö</string></data></wddxPacket> If this is correct, ie wddx*() _should_ be affected by locale, then I suggest that it be described in the docs as soon as possible! Thanks for your work and patience, /Johan Previous Comments: ------------------------------------------------------------------------ [2001-11-10 04:25:04] sniper@php.net Propably your locales again. Anyway, what does this output: <?php echo wddx_serialize_value("xyzåäö"); ?> ------------------------------------------------------------------------ [2001-11-01 04:26:15] johan@ekenberg.se 1. Linux distribution is Slackware 4.0 which is a libc 5 dist. Running kernel 2.2.19 2. configure --with-xml --enable-wddx ------------------------------------------------------------------------ [2001-10-31 19:28:36] sniper@php.net What are your: - linux distribution - configure line for PHP --Jani ------------------------------------------------------------------------ [2001-10-31 05:41:33] johan@ekenberg.se No, it still doesn't work here. I got the latest (oct 31) snap from snaps.php.net: # ./configure --with-xml --enable-wddx # make # ./php wddx_test.php X-Powered-By: PHP/4.2.0-dev Content-type: text/html xyz??? wddx_test.php contains the one-liner submitted in my original report: print wddx_deserialize(wddx_serialize_value("xyzåäö")); /Johan ------------------------------------------------------------------------ [2001-10-30 18:15:32] sniper@php.net Works fine for me with latest CVS. Try a snapshot from http://snaps.php.net/ --Jani ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/?id=13873 Edit this bug report at http://bugs.php.net/?id=13873&edit=1

« previous php.dev (#70247) next »