Mantis Bugtracker
  

Viewing Issue Advanced Details Jump to Notes ] View Simple ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0003120 [Quercus] minor always 12-05-08 03:15 02-10-09 05:55
Reporter nbzx View Status public  
Assigned To nam
Priority normal Resolution no change required Platform
Status closed   OS
Projection none   OS Version
ETA none Fixed in Version 4.0.0 Product Version 3.2.1
  Product Build
Summary 0003120: json_encode about some chinese words
Description example:
<?php
  $str_1 = json_encode('&37319;') . 'a';
  $str_2 = json_encode('&37319;a');
  echo $str_1 == $str2; //It should be 1(ture),but the result is NULL, so some chinese words can't be correctly encode.
?>
Steps To Reproduce
Additional Information
Attached Files

- Relationships

- Notes
(0003819)
nam
02-10-09 05:55

php/470b

Appears to be fixed already on 4.0.

Test case:
=========================================
<?php

var_dump(json_encode("test\xc3\x84"));
var_dump(json_decode("\"test\\u00c4\""));

?>
</php>

Results:
=========================================
string(12) ""test\u00c4""
string(6) "test\xc3\x84"
 

- Issue History
Date Modified Username Field Change
12-05-08 03:15 nbzx New Issue
02-10-09 05:53 nam Status new => assigned
02-10-09 05:53 nam Assigned To  => nam
02-10-09 05:55 nam Status assigned => closed
02-10-09 05:55 nam Note Added: 0003819
02-10-09 05:55 nam Resolution open => no change required
02-10-09 05:55 nam Fixed in Version  => 4.0.0


Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
30 total queries executed.
27 unique queries executed.
Powered by Mantis Bugtracker