Jump to content

loading ASCII-encoded XML fails on characters from the extended set


valkyr

Recommended Posts

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...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.