ID: 39806
Updated by: [EMAIL PROTECTED]
Reported By: philippe dot levan_nospam at kitpages dot fr
Status: Open
-Bug Type: Unknown/Other Function
+Bug Type: Documentation problem
Operating System: Windows/Linux
PHP Version: 5.2.0
New Comment:
JSON supports only UTF8 strings.
Reclassified as docu problem.
Previous Comments:
------------------------------------------------------------------------
[2006-12-12 10:52:40] philippe dot levan_nospam at kitpages dot fr
Description:
------------
json_encode stops when it finds an accent in the string
Reproduce code:
---------------
<?php
$title="nos succès";
$json = json_encode($title);
header("Content-type: plain/text");
echo "title=$title\n";
echo "json=$json\n";
?>
Expected result:
----------------
title=nos succès
json="nos succès"
Actual result:
--------------
title=nos succès
json="nos succ"
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=39806&edit=1