ID: 13873
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
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] [EMAIL PROTECTED]

Propably your locales again. Anyway, what does this output:

<?php echo wddx_serialize_value("xyzåäö"); ?>



------------------------------------------------------------------------

[2001-11-01 04:26:15] [EMAIL PROTECTED]

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] [EMAIL PROTECTED]

What are your:

- linux distribution
- configure line for PHP

--Jani


------------------------------------------------------------------------

[2001-10-31 05:41:33] [EMAIL PROTECTED]

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] [EMAIL PROTECTED]

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


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to