From: allan dot jensen at changenetworks dot dk Operating system: PHP version: 5.2.3 PHP Bug Type: XMLRPC-EPI related Bug description: xmlrpc_encode_request escapes utf-8 literally
Description: ------------ xmlrpc_encode_request XML-escapes literally without first converting to UTF-16 as required. Once fixed the default option should also be changed from escaping non-ascii, to escaping non-encodable Reproduce code: --------------- xmlrpc_encode_request('method', '€', array('encoding'=>'utf-8')); Expected result: ---------------- <?xml version="1.0" encoding="utf-8"?> <methodCall> <methodName>method</methodName> <params> <param> <value> <string>€</string> </value> </param> </params> </methodCall> Actual result: -------------- <?xml version="1.0" encoding="utf-8"?> <methodCall> <methodName>method</methodName> <params> <param> <value> <string>€</string> </value> </param> </params> </methodCall> -- Edit bug report at http://bugs.php.net/?id=41650&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=41650&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=41650&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=41650&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=41650&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=41650&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=41650&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=41650&r=needscript Try newer version: http://bugs.php.net/fix.php?id=41650&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=41650&r=support Expected behavior: http://bugs.php.net/fix.php?id=41650&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=41650&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=41650&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=41650&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=41650&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=41650&r=dst IIS Stability: http://bugs.php.net/fix.php?id=41650&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=41650&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=41650&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=41650&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=41650&r=mysqlcfg