Mantis Bugtracker
  

Viewing Issue Advanced Details Jump to Notes ] View Simple ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0003316 [Quercus] block always 02-04-09 10:23 02-04-09 16:09
Reporter koreth View Status public  
Assigned To nam
Priority normal Resolution fixed Platform
Status closed   OS
Projection none   OS Version
ETA none Fixed in Version 4.0.0 Product Version 4.0.0
  Product Build
Summary 0003316: simplexml doesn't preserve UTF-8 encoding
Description <?php
$xml = "<?xml version=\"1.0\" encoding=\"UTF-8\"?><foo><bar>\xc3\xa8</bar></foo>";
$sxml = simplexml_load_string($xml);
print strlen($sxml->bar) . (($sxml->bar == "\xc3\xa8") ? " same" : " not same");

PHP prints "2 same". Quercus prints "1 not same" -- it is apparently decoding the UTF-8 sequence and returning a Unicode string. I don't have PHP6 Unicode semantics enabled.
Steps To Reproduce
Additional Information
Attached Files

- Relationships

- Notes
(0003802)
nam
02-04-09 16:09

php/1x0e
 

- Issue History
Date Modified Username Field Change
02-04-09 10:23 koreth New Issue
02-04-09 16:09 nam Status new => assigned
02-04-09 16:09 nam Assigned To  => nam
02-04-09 16:09 nam Status assigned => closed
02-04-09 16:09 nam Note Added: 0003802
02-04-09 16:09 nam Resolution open => fixed
02-04-09 16:09 nam Fixed in Version  => 4.0.0


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