When I am trying to load the xml file using\[code\]$doc = new DOMDocument();$ret_value = http://stackoverflow.com/questions/12783130/$doc->load($v);\[/code\]I get the error:\[code\]Warning: DOMDocument::load(): Input is not proper UTF-8, indicate encoding !\[/code\]Bytes: 0x99 0x20 0x34 0x35 in /somefile.xml, line: 1241 in /some.php on line 154here 0x99 is decimal value is 153.The problem is, In the XML file, there is a trademark symbol. When encountering that trademark symbol, the XML load fails.Please guide me how to solve this problem. I googled and find out that, I need to add entities, may be using the function \[code\]createEntityReference\[/code\].But, I also want to parse the xml successfully if it has any of the "Reserved entities, symbols and characters in HTML" as in http://www.web2generators.com/html/entities.