我有下面的php代码,它给出了非拉丁字母的错误
header('Content-Type: text/html; charset=utf-8');
$u = $_GET['url'];
$urlContents = file_get_contents($u);
$dom = new DOMDocument();
@$dom->loadHTML($urlContents);
$title = $dom->getElementsByTagName('title');
print($title->item(0)->nodeValue . "\n");