Req #41650 [Opn->Wfx]: xmlrpc_encode_request() escapes utf-8 literally

From: Date: Tue, 13 Apr 2021 13:53:44 +0000
Subject: Req #41650 [Opn->Wfx]: xmlrpc_encode_request() escapes utf-8 literally
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-233394@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=41650&edit=1 ID: 41650 Updated by: cmb@php.net Reported by: allan dot jensen at changenetworks dot dk Summary: xmlrpc_encode_request() escapes utf-8 literally -Status: Open +Status: Wont fix Type: Feature/Change Request Package: XMLRPC-EPI related Operating System: * PHP Version: 5.3.5 -Assigned To: +Assigned To: cmb Block user comment: N Private report: N New Comment: The xmlrpc extension is unbundled and moved to PECL as of PHP 7.4.0. I'm temporarily maintaining the extension, but I will not do any feature additions. Actually, everybody is likely better off to switch to something else. Thus, I'm closing this ticket. Previous Comments: ------------------------------------------------------------------------ [2007-06-11 13:01:24] allan dot jensen at changenetworks dot dk The test script should have &#8364; character encoded as utf-8 in order to work. ------------------------------------------------------------------------ [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 https://bugs.php.net/bug.php?id=41650&edit=1

« previous php.bugs (#233394) next »