Results 1 to 10 of 10
Thread: XML encoding type to use
Mar 17, 2009, 11:59 #1
XML encoding type to use
I have written a php application that parses an XML file and uploads the values to a database. However, when I try to upload a different language like french for example my PHP outputs errors as shown below.
Warning: DOMDocument::loadXML() [domdocument.loadxml]: Input is not proper UTF-8, indicate encoding ! Bytes: 0xE9 0x6E 0x6F 0x6D in Entity, line: 8 in C:\wamp\www\admin\classes\admin.class.php on line 2017
<?xml version="1.0" encoding="utf-8" ?>
<phrase>Nouvel enregistrement d'utilisateur Prénom</phrase>
1) Which encoding should I be using in this XML document?
2) Is there any special validation that I need to do before inserting the <phrase> value into the database or can it just be inserted as is?
Thank you in advance.