|
Mantis - Quercus
|
|||||
| Viewing Issue Advanced Details | |||||
|
|
|||||
| ID: | Category: | Severity: | Reproducibility: | Date Submitted: | Last Update: |
| 3316 | block | always | 02-04-09 10:23 | 02-04-09 16:09 | |
|
|
|||||
| Reporter: | koreth | Platform: | |||
| Assigned To: | nam | OS: | |||
| Priority: | normal | OS Version: | |||
| Status: | closed | Product Version: | 4.0.0 | ||
| Product Build: | Resolution: | fixed | |||
| Projection: | none | ||||
| ETA: | none | Fixed in 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. |
||||
| Steps To Reproduce: | |||||
| Additional Information: | |||||
| Relationships | |||||
| Attached Files: | |||||
| Notes | |||||
|
|
|||||
|
|
||||