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 € 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', '€', 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

Reply via email to