#15800 [Opn->Bgs]: german characters cannot be stored

From: Date: Thu, 08 Aug 2002 14:47:00 +0000
Subject: #15800 [Opn->Bgs]: german characters cannot be stored
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-16288@lists.php.net to get a copy of this message
ID: 15800 Updated by: kalowsky@php.net Reported By: thomas.rauh@feig-partner.de -Status: Open +Status: Bogus Bug Type: WDDX related Operating System: Win2000 PHP Version: 4.1.1 New Comment: Thank you for taking the time to report a problem with PHP. Unfortunately you are not using a current version of PHP -- the problem might already be fixed. Please download a new PHP version from http://www.php.net/downloads.php If you are able to reproduce the bug with one of the latest versions of PHP, please change the PHP version on this bug report to the version you tested and change the status back to "Open". Again, thank you for your continued support of PHP. Previous Comments: ------------------------------------------------------------------------ [2002-04-21 06:19:49] bs_php@infeer.com See bug #16718 http://bugs.php.net/bug.php?id=16718 ------------------------------------------------------------------------ [2002-04-21 05:00:32] bs_php@infeer.com Reboot did not solve the problem! ------------------------------------------------------------------------ [2002-04-20 18:10:11] bs_php@infeer.com Using PHP 4.1.2 and can confirme the error. It's very inconsisten! At first I wasn't using setlocale() and all seamed fine. But after I called setlocale() the wddx serialize failed all the time! Multiple calls of setlocale() produce 2 different results that alternate. After every Apache restart the results changes sort of randomly! If setlocale() is commented out, the the last result remains (even after apache is restarted). It seams as if setlocale() is writting something wrong to the apache conf. Don't know if a reboot would help, but if not my wddx serializetion would stay broken :( I recommend not to us it!!! Following code was used to test : <?php setlocale(LC_ALL,"german"); $in = "ÄÖÜäöü"; $ser = wddx_serialize_value($in); $des = wddx_deserialize($ser); echo "<pre>"; echo htmlspecialchars($ser) . "\n"; var_dump($des); echo "</pre>"; ?> ------------------------------------------------------------------------ [2002-02-28 19:25:21] thomas.rauh@feig-partner.de Summary: german characters cannot be stored by wddx_serialize_vars To make it easier for you to reproduce the bug i write a little step-by-step summary: 1) Setting the correct local zone setlocale("LC_ALL","german"); 2) Writing some test-data with german characters ÄÖÜäüö 3) Pushing the test-data into wddx_serialize_vars on a Win2000 Server. Results on Win2000: Ä<char code='FFFFFFD6'/>Üä<char code='FFFFFFF6'/><char code='FFFFFFFC'/> Results on Linux (correct values): ÄÖÜäöü 4) Reading the values back (from the saved wddx package) Ä Üä It seams like that only some locale characters (ÄÜä) are recognized on an Win2000 Server. With the same script and the same data, there are no problems on an Linux Server. Happy Debugging :-) Thomas ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=15800&edit=1

« previous php.bugs (#16288) next »