<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1254">
</head>
<body>
<?php
$url = 'http://www.koeri.boun.edu.tr/sismo/zeqmap/xmlt/son24saat.xml';
$html = file_get_contents($url);
//Change encoding to UTF-8 from ISO-8859-1
$a = iconv('ISO-8859-1', 'UTF-8//IGNORE', $html);
print_r($a);
?>
</body>
ÿþ&lt; ?xml version =“1.0”encoding =“ISO-8859-1”?&gt; &LT; eqlist&GT; ...
答案 0 :(得分:0)
你的字符集不是utf-8,而是xml编码。