UTF8 encoding error while using simplexml_load_string method

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
buttsp
Forum Newbie
Posts: 13
Joined: Thu May 11, 2006 9:17 am

UTF8 encoding error while using simplexml_load_string method

Post by buttsp »

Hi,
I have some spanish characters in my xml structure which is utf-8 encoded. When i parse that structure using simplexml_load_string method the following error comes:

Code: Select all

Warning: simplexml_load_string() [function.simplexml-load-string]: Entity: line 2: parser error : Input is not proper UTF-8, indicate encoding ! Bytes: 0xED 0x61 0x20 0x64
I have also set in mySQL DB tables and column Collation to general_utf8_ci, but the problem is not solved. The xml is being generated through data in mysql db.

Pls help.
Post Reply