#41650 [Opn]: xmlrpc_encode_request escapes utf-8 literally

From: Date: Mon, 11 Jun 2007 13:01:24 +0000
Subject: #41650 [Opn]: xmlrpc_encode_request escapes utf-8 literally
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-113637@lists.php.net to get a copy of this message
ID: 41650 User updated by: allan dot jensen at changenetworks dot dk Reported By: allan dot jensen at changenetworks dot dk Status: Open Bug Type: XMLRPC-EPI related PHP Version: 5.2.3 New Comment: The test script should have &#8364; character encoded as utf-8 in order to work. Previous Comments: ------------------------------------------------------------------------ [2007-06-11 13:00:06] allan dot jensen at changenetworks dot dk 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', '&#8364;', array('encoding'=>'utf-8')); Expected result: ---------------- <?xml version="1.0" encoding="utf-8"?> <methodCall> <methodName>method</methodName> <params> <param> <value> <string>&#8364;</string> </value> </param> </params> </methodCall> Actual result: -------------- <?xml version="1.0" encoding="utf-8"?> <methodCall> <methodName>method</methodName> <params> <param> <value> <string>&#226;&#130;&#172;</string> </value> </param> </params> </methodCall> ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=41650&edit=1

« previous php.bugs (#113637) next »