|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-03-09 13:25 UTC] silver_dragoon77 at hotmail dot com
[2004-03-09 18:25 UTC] iliaa@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 01 18:00:01 2025 UTC |
Description: ------------ The example string given at the php simple xml manual page contains actór (spanish stress on the "o"). simplexml_load_string or even simplexml_load_file both fail. If I remove the ó it works fine. Reproduce code: --------------- $xmlstr = <<<XML <?xml version='1.0' standalone='yes'?> <movies> <movie> <title>PHP: Behind the Parser</title> <characters> <character> <name>Ms. Coder</name> <actor>Onlivia Actora</actor> </character> <character> <name>Mr. Coder</name> <actor>El Actor</actor> </character> </characters> <plot> So, this language. It's like, a programming language. Or is it a scripting language? All is revealed in this thrilling horror spoof of a documentary. </plot> <rating type="thumbs">7</rating> <rating type="stars">5</rating> </movie> </movies> XML; $xml = simplexml_load_string($xmlstr); var_dump($xml); Expected result: ---------------- var_dump should return a simplexml object Actual result: -------------- $xml is bool(false)