Bug #75281 [Opn->Fbk]: xmlrpc_encode_request fail with CAPITAL string multibyte
| From: | cmb@php.net | Date: | Mon, 19 Mar 2018 13:01:01 +0000 |
| Subject: | Bug #75281 [Opn->Fbk]: xmlrpc_encode_request fail with CAPITAL string multibyte | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-214404@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=75281&edit=1
ID: 75281
Updated by: cmb@php.net
Reported by: rg at mejoramos dot com
Summary: xmlrpc_encode_request fail with CAPITAL string
multibyte
-Status: Open
+Status: Feedback
Type: Bug
Package: mbstring related
Operating System: ANY
PHP Version: 7.0.24
-Assigned To:
+Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
What is the value of $MSJ? Please do
var_dump($MSJ);
Previous Comments:
------------------------------------------------------------------------
[2017-09-29 02:24:56] rg at mejoramos dot com
Description:
------------
Hi.
My script XMLRPC work fine, even with multibyte string.
But when I used CAPITAL strings (multibyte),
PHP broken.
Example:
(send by GET or POST a sample string as "My string target is ññ and ÃÃ") you
obtain this:
<?php
$MSJ = xmlrpc_encode_request('manarchi', $_GET, ARRAY('XML'));
echo html_entity_decode($MSJ, NULL, 'ISO-8859-1');
?>
output:
---------------------------
My string target is ññ and ?‘?‘
---------------------------
correct output:
---------------------------
My string target is ññ and ÃÃ
---------------------------
then you obtain fine the FIRST letters (ññ), but capital Ãà is wrong.
you can see, fail only with CAPITAL strings.
Thanks by review, really I need capital letters in my program.
Regards.
Test script:
---------------
Hi.
My script XMLRPC work fine, even with multibyte string.
But when I used CAPITAL strings (multibyte),
PHP broken.
Example:
(send by GET or POST a sample string as "My string target is ññ and ÃÃ") you
obtain this:
<?php
$MSJ = xmlrpc_encode_request('manarchi', $_GET, ARRAY('XML'));
echo html_entity_decode($MSJ, NULL, 'ISO-8859-1');
?>
output:
---------------------------
My string target is ññ and ?‘?‘
---------------------------
correct output:
---------------------------
My string target is ññ and ÃÃ
---------------------------
then you obtain fine the FIRST letters (ññ), but capital Ãà is wrong.
you can see, fail only with CAPITAL strings.
Thanks by review, really I need capital letters in my program.
Regards.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=75281&edit=1