PHP DOMDocument::loadHTML() input error

2014-07-13 11:15:53 0  category: PHP记事本
Warning: DOMDocument::loadHTML(): input conversion failed due to input error, bytes 0xAD 0xE6 0x88 0x8F in C:\Userstest.img.dom.php on line 7



错误解决方案 :


$html=new DOMDocument();   

$html_source = get_html();
$html_source =mb_convert_encoding( $html_source, "HTML-ENTITIES", "UTF-8");
$html->loadHTML( $html_source );