Bug #73908 [NEW]: Invalid UTF-8 encoding

From: Date: Tue, 10 Jan 2017 14:54:07 +0000
Subject: Bug #73908 [NEW]: Invalid UTF-8 encoding
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-206465@lists.php.net to get a copy of this message
From: bugsphpnet at atis dot id dot lv Operating system: Ubuntu 16.04 PHP version: 7.1.0 Package: XMLRPC-EPI related Bug Type: Bug Bug description:Invalid UTF-8 encoding Description: ------------ --- From manual page: http://www.php.net/function.xmlrpc-encode --- UTF-8 characters are incorrectly encoded. 208 character code turns into 28, and 209 turns into 29, etc PHP 5.3.10 did not had this problem. Problem has been reproduced on versions: PHP 7.1.0-5+deb.sury.org~xenial+1 (cli) ( NTS ) PHP 7.0.8-0ubuntu0.16.04.3 (cli) ( NTS ) Test script: --------------- <?php print_r(xmlrpc_encode('Москва')); Expected result: ---------------- <?xml version="1.0" encoding="utf-8"?><params><param><value><string>&#208;&#156;&#208;&#190;&#209;&#129;&#208;&#186;&#208;&#178;&#208;&#176;</string></value></param></params> Actual result: -------------- <?xml version="1.0" encoding="utf-8"?><params><param><value> <string>&#28;&#156;&#28;&#190;&#29;&#129;&#28;&#186;&#28;&#178;&#28;&#176;</string></value></param></params> -- Edit bug report at https://bugs.php.net/bug.php?id=73908&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=73908&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=73908&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=73908&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=73908&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=73908&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=73908&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=73908&r=needscript Try newer version: https://bugs.php.net/fix.php?id=73908&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=73908&r=support Expected behavior: https://bugs.php.net/fix.php?id=73908&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=73908&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=73908&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=73908&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=73908&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=73908&r=dst IIS Stability: https://bugs.php.net/fix.php?id=73908&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=73908&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=73908&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=73908&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=73908&r=mysqlcfg

« previous php.bugs (#206465) next »