valkyr Posted March 18, 2010 Share Posted March 18, 2010 I'm trying to load an ASCII-encoded XML document - a sequential list of the 256 characters and a description of each. $XML = new DomDocument; $XML->load('../xml/articles/ASCII-character-set.xml'); But the parser spits out an error when it hits the first character from the extended ASCII set (the Euro symbol - € ) Warning: DOMDocument::load() [domdocument.load]: encoder errorPremature end of data in tag char Loading the document with SimpleXML gives exactly the same. How do I get round this? :-\ I've discovered that the document is always represented as UTF-8 internally, but I'm not really sure how/if that influences my issue... Link to comment https://forums.phpfreaks.com/topic/195639-loading-ascii-encoded-xml-fails-on-characters-from-the-extended-set/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.