simpleXML and accented characters in PHP
问题 I have written an XML file which is using the ISO-8859-15 encoding and most of the data within the feed is ran through htmlspecialchars(). I am then using simplyxml_load_string() to retrieve the contents of the XML file to use in my script. However, if I have any special characters (ie: é á ó) it comes out as "é á ó". The How can I get my script to display the proper special accented characters? 回答1: You’re probably using a different character encoding for you output than the XML data is