php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #57577 string problem
Submitted: 2007-03-16 10:39 UTC Modified: 2008-12-18 21:18 UTC
From: raphgivernaud at yahoo dot fr Assigned:
Status: Not a bug Package: json (PECL)
PHP Version: 5.2.1 OS: Windows XP SP2
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: raphgivernaud at yahoo dot fr
New email:
PHP Version: OS:

 

 [2007-03-16 10:39 UTC] raphgivernaud at yahoo dot fr
Description:
------------
If i use json_encode its truncates the string on an unexpected char

Reproduce code:
---------------
$tmp = array('Lib' => 'R?le');
echo json_encode($tmp);


Expected result:
----------------
"Lib":"R?le"

Actual result:
--------------
"Lib":"R"

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-12-18 21:18 UTC] scottmac@php.net
JSON only works with UTF-8
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Fri Sep 18 18:01:26 2020 UTC