[PATCH] wddx_serialize_value() treats input as ISO-8859-1
| Bug #46496 | [PATCH] wddx_serialize_value() treats input as ISO-8859-1 | ||||
|---|---|---|---|---|---|
| Submitted: | 2008-11-05 17:30 UTC | Modified: | 2008-11-19 23:52 UTC | ||
| From: | mark at hell dot ne dot jp | Assigned: | |||
| Status: | Closed | Package: | WDDX related | ||
| PHP Version: | 5.2.6 | OS: | Linux | ||
| Private report: | No | CVE-ID: | None | ||
[2008-11-05 17:30 UTC] mark at hell dot ne dot jp
Description: ------------ As written on the page on : http://fr.php.net/manual/en/ref.wddx.php wddx_serialize_value() always treats input as ISO-8859-1. This behaviour has changed in PHP 5.2.5, and has caused a few bugs on our side (and it seems we are not the only ones). For now the workaround is to use utf8_decode() on the resulting XML string. Reproduce code: --------------- <?php header("Content-Type: text/xml;encoding=utf-8"); echo wddx_serialize_value("안녕 하세요"); ?> Expected result: ---------------- <wddxPacket version='1.0'><header/><data><string>안녕 하세요</string></data></wddxPacket> Actual result: -------------- <wddxPacket version='1.0'><header/><data><string>?•ˆ?…• ?•˜?„??š”</string></data></wddxPacket>
Patches
Pull Requests
History
AllCommentsChangesGit/SVN commits
[2008-11-06 04:36 UTC] mark at hell dot ne dot jp
[2008-11-06 04:54 UTC] mark at hell dot ne dot jp
[2008-11-06 05:00 UTC] mark at hell dot ne dot jp
[2008-11-07 05:43 UTC] mark at hell dot ne dot jp
[2008-11-19 17:04 UTC] pajoye@php.net
[2008-11-19 23:52 UTC] iliaa@php.net