Tip & How-To about Computers & Internet

PHP DOMDocument->load() encoding error

Where there are funky characters in the XML file,DOMDocument->load complained about them, saying that they weren’t UTF-8, and to specify the encoding.
For example,Warning: DOMDocument::loadXML(): Input is not proper UTF-8, indicate encoding !
Bytes: 0xE4 0x3C 0x2F 0x66 in Entity, line: 1 in test.php on line 6
with doc->recover=false(default) : failed
Solution:
PHP DOMDocument->load() encoding error

Posted by on

Computers & Internet Logo

Related Topics:

Related Questions:

1 Answer

I cannot send complete text messages that have a picture and music associated with them. Either no picture and music, or just the picture is transmitted.


This error may be caused by a character encoding system that is not fully supported on your GSM carrier network MMS handling system. To remedy the problem, under settings for the messaging service in concern, set the default character encoding scheme to GSM Alphabet instead of UTF-8, and ensure that the selected MMS class and size is supported by your carrier.Also, ensure that your device is fully compliant with the OMA( Open Mobile Alliance) MMS Messaging Standards in respect to the size and content of the message you are sending.

Dec 17, 2010 | Cell Phones

1 Answer

when I go to any facebook page, I get gobbletygook - squares and number signs, etc. No actual words or facebook pages.


Try changing the encoding to UTF-8.
In Firefox, it's View->Character Encoding->Unicode(UTF-8)

Sep 24, 2009 | Facebook Social Network

1 Answer

have little sqauares all over my facebook page and want to get ride off


try changing the page encoding, it should be Unicode (UTF-8)
in Mozilla Firefox, it's located in View->Character Encoding

Sep 20, 2009 | Facebook Computers & Internet

1 Answer

Problem while loading the xls file


hello my friend, the error refers to the writing of xls to xml of the file. So therefore the error committed within the software side particularly in the excel software. Try to convert another xls file to xml files then if you find same problem i advice you to used full version of office rather than using light version. Then reinstall the office particularly the excel software

Jun 16, 2009 | Microsoft Office Professional 2007 Full...

2 Answers

divx greek subtitles


look in the menu and try to change the encoding, There should be 3 options, Unicode, Cyrilic & Greek. Select greek if the .sub or .srt file is in ANSI encoding, or select Unicode if the file is in UTF-8 or Unicode encoding.

To find out the encoding of an .srt file the simpliest thing to do is open them with notepad and got to "File" -> "Save as", The encoding should appear in the bottom of the dialog.

Oct 25, 2007 | Samsung HT-Q100 System

Not finding what you are looking for?

985 people viewed this tip

Ask a Question

Usually answered in minutes!

Top Computers & Internet Experts

Doctor PC
Doctor PC

Level 3 Expert

7733 Answers

kakima

Level 3 Expert

102366 Answers

David Payne
David Payne

Level 3 Expert

14161 Answers

Are you a Computer and Internet Expert? Answer questions, earn points and help others

Answer questions

Loading...