From:             mark at hell dot ne dot jp
Operating system: Linux
PHP version:      5.2.6
PHP Bug Type:     XML related
Bug description:  wddx_serialize_value does not respects the documentation

Description:
------------
As written on the page on :

http://fr.php.net/manual/en/ref.wddx.php

wddx_serialize_value() always treats input as ISO-8859-1.

This behaviour has changed in PHP 5.2.5, and has caused a few bugs on our
side (and it seems we are not the only ones).

For now the workaround is to use utf8_decode() on the resulting XML
string.

Reproduce code:
---------------
<?php
header("Content-Type: text/xml;encoding=utf-8");
echo wddx_serialize_value("&#50504;&#45397; &#54616;&#49464;&#50836;");
?>

Expected result:
----------------
<wddxPacket version='1.0'><header/><data><string>&#50504;&#45397;
&#54616;&#49464;&#50836;</string></data></wddxPacket>


Actual result:
--------------
<wddxPacket
version='1.0'><header/><data><string>ì&#149;&#136;ë&#133;&#149;
í&#149;&#152;ì&#132;¸ì&#154;&#148;</string></data></wddxPacket>


-- 
Edit bug report at http://bugs.php.net/?id=46496&edit=1
-- 
Try a CVS snapshot (PHP 5.2):        
http://bugs.php.net/fix.php?id=46496&r=trysnapshot52
Try a CVS snapshot (PHP 5.3):        
http://bugs.php.net/fix.php?id=46496&r=trysnapshot53
Try a CVS snapshot (PHP 6.0):        
http://bugs.php.net/fix.php?id=46496&r=trysnapshot60
Fixed in CVS:                        
http://bugs.php.net/fix.php?id=46496&r=fixedcvs
Fixed in CVS and need be documented: 
http://bugs.php.net/fix.php?id=46496&r=needdocs
Fixed in release:                    
http://bugs.php.net/fix.php?id=46496&r=alreadyfixed
Need backtrace:                      
http://bugs.php.net/fix.php?id=46496&r=needtrace
Need Reproduce Script:               
http://bugs.php.net/fix.php?id=46496&r=needscript
Try newer version:                   
http://bugs.php.net/fix.php?id=46496&r=oldversion
Not developer issue:                 
http://bugs.php.net/fix.php?id=46496&r=support
Expected behavior:                   
http://bugs.php.net/fix.php?id=46496&r=notwrong
Not enough info:                     
http://bugs.php.net/fix.php?id=46496&r=notenoughinfo
Submitted twice:                     
http://bugs.php.net/fix.php?id=46496&r=submittedtwice
register_globals:                    
http://bugs.php.net/fix.php?id=46496&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=46496&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=46496&r=dst
IIS Stability:                       
http://bugs.php.net/fix.php?id=46496&r=isapi
Install GNU Sed:                     
http://bugs.php.net/fix.php?id=46496&r=gnused
Floating point limitations:          
http://bugs.php.net/fix.php?id=46496&r=float
No Zend Extensions:                  
http://bugs.php.net/fix.php?id=46496&r=nozend
MySQL Configuration Error:           
http://bugs.php.net/fix.php?id=46496&r=mysqlcfg

Reply via email to