How to handle special characters with XMLReader in PHP
I am having problems parsing an XML file which contains special characters. I am using the built in XMLreader in PHP. All XML records are processed fine, until one of the values contain a special character, then I get the following error:
Warning: XMLReader::read(): An Error Occured while reading in...
Once I remove the character it parses fine, but I need to be able to parse special characters and write them into my database.
Make sure, that both points are using the same (recommended UTF-8), then it should work.