i get page in utf-8 with russian language using curl. if i echo text it show good. then i use such code
$dom = new domDocument; /*** load the html
The DOM cannot recognize the HTML's encoding. You can try something like:
$doc = new DOMDocument(); $doc->loadHTML('' . $html); // taken from http://php.net/manual/en/domdocument.loadhtml.php#95251