| Anonymous | Login | Signup for a new account | 10-28-2025 12:09 PDT |
| Main | My View | View Issues | Change Log | Docs |
| Viewing Issue Simple Details [ Jump to Notes ] | [ View Advanced ] [ 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 | ||||||
| Status | closed | Product Version | 4.0.0 | ||||||
| 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. |
||||||||
| Additional Information | |||||||||
| Attached Files | |||||||||
|
|
|||||||||
| Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
29 total queries executed. 26 unique queries executed. |