ID:               15800
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
 Status:           Open
 Bug Type:         WDDX related
 Operating System: Win2000
 PHP Version:      4.1.1
 New Comment:

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>";
?>


Previous Comments:
------------------------------------------------------------------------

[2002-02-28 19:25:21] [EMAIL PROTECTED]

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

Reply via email to