From:             fabien dot arcellier at gmail dot com
Operating system: ubuntu
PHP version:      5.3.23
Package:          JSON related
Bug Type:         Bug
Bug description:The character \u0092 is removed by json_decode

Description:
------------
When process json data, the character \u0092 is removed. In french it's an
issue.

Test script:
---------------
<?php
$var = '{"id_musee":"179","presentation_francais":"Arch\u00e9ologie de
l\u0092\u00e2ge du fer au Moyen \u00c2ge. C\u00e9ramiques grecques,
\u00e9trusques, italiotes."}';
$copy = json_decode($var);

var_dump($copy);

// Result : { ["id_musee"]=> string(3) "179" ["presentation_francais"]=>
string(90) "Archéologie de l’âge du fer au Moyen Âge. Céramiques
grecques, étrusques, italiotes." }

// Expected : { ["id_musee"]=> string(3) "179" ["presentation_francais"]=>
string(90) "Archéologie de l'’âge du fer au Moyen Âge. Céramiques
grecques, étrusques, italiotes." }


?>


-- 
Edit bug report at https://bugs.php.net/bug.php?id=64442&edit=1
-- 
Try a snapshot (PHP 5.4):   
https://bugs.php.net/fix.php?id=64442&r=trysnapshot54
Try a snapshot (PHP 5.3):   
https://bugs.php.net/fix.php?id=64442&r=trysnapshot53
Try a snapshot (trunk):     
https://bugs.php.net/fix.php?id=64442&r=trysnapshottrunk
Fixed in SVN:               https://bugs.php.net/fix.php?id=64442&r=fixed
Fixed in release:           https://bugs.php.net/fix.php?id=64442&r=alreadyfixed
Need backtrace:             https://bugs.php.net/fix.php?id=64442&r=needtrace
Need Reproduce Script:      https://bugs.php.net/fix.php?id=64442&r=needscript
Try newer version:          https://bugs.php.net/fix.php?id=64442&r=oldversion
Not developer issue:        https://bugs.php.net/fix.php?id=64442&r=support
Expected behavior:          https://bugs.php.net/fix.php?id=64442&r=notwrong
Not enough info:            
https://bugs.php.net/fix.php?id=64442&r=notenoughinfo
Submitted twice:            
https://bugs.php.net/fix.php?id=64442&r=submittedtwice
register_globals:           https://bugs.php.net/fix.php?id=64442&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=64442&r=php4
Daylight Savings:           https://bugs.php.net/fix.php?id=64442&r=dst
IIS Stability:              https://bugs.php.net/fix.php?id=64442&r=isapi
Install GNU Sed:            https://bugs.php.net/fix.php?id=64442&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=64442&r=float
No Zend Extensions:         https://bugs.php.net/fix.php?id=64442&r=nozend
MySQL Configuration Error:  https://bugs.php.net/fix.php?id=64442&r=mysqlcfg

Reply via email to