How do I convert, display and store this characters in PHP?
<p>I have this set of code which may randomly read a webpage and output the page title to the user, depending on what they input in the url field, it might be an English site, Chinese, Russian or whatever. But the problem is it keeps on displaying garbled text: ¹ù¸»³Ç - Google ËÑË÷</p>

<p>Anyone have idea is greatly appreciated.</p>

<pre><code>&lt;!doctype html&gt;
&lt;html&gt;
&lt;head&gt;
&lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt;
&lt;?php

$DOM = new DOMDocument('1.0', 'UTF-8');

if( !@$DOM-&gt;loadHTMLFile( 'http://www.google.com.sg/search?hl=zh-CN&amp;biw=1366&amp;bih=636&amp;q=%E9%83%AD%E5%AF%8C%E5%9F%8E&amp;oq=%E9%83%AD%E5%AF%8C%E5%9F%8Ea&amp;aq=f&amp;aqi=g10&amp;aql=undefined&amp;gs_sm=e&amp;gs_upl=6545l6545l0l1l1l0l0l0l0l295l295l2-1l1aa' ) ) {
    die('cannot load!');
}
else {
    $XPath = new DOMXPath( $DOM );
    $title = strip_tags( $XPath-&gt;query('//title')-&gt;item(0)-&gt;nodeValue );
    echo $title; exit;
}

?&gt;
</code></pre>
