Edit report at https://bugs.php.net/bug.php?id=64442&edit=1
ID: 64442 Updated by: [email protected] Reported by: fabien dot arcellier at gmail dot com Summary: The character \u0092 is removed by json_decode -Status: Closed +Status: Not a bug Type: Bug Package: JSON related Operating System: ubuntu PHP Version: 5.3.23 Block user comment: N Private report: N Previous Comments: ------------------------------------------------------------------------ [2013-03-17 16:20:33] fabien dot arcellier at gmail dot com It was a mistake from myself preparing the data. I shouldn't have u0092. No font represents this character. You can close this bug report. Regards ------------------------------------------------------------------------ [2013-03-17 15:57:22] fabien dot arcellier at gmail dot com 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 this bug report at https://bugs.php.net/bug.php?id=64442&edit=1
