爲什麼我在使用echo的字符集時遇到問題?file_get_contents()PHP
$url = "http://ru.wikipedia.org";
$site=file_get_contents($url);
echo $site;
爲什麼我在使用echo的字符集時遇到問題?file_get_contents()PHP
$url = "http://ru.wikipedia.org";
$site=file_get_contents($url);
echo $site;
你在網頁上使用的字符編碼的開始? – 2010-03-21 14:56:05
顯然你使用不同的字符編碼爲你輸出比維基百科用於他們的輸出(他們使用UTF-8)。 – Gumbo 2010-03-21 14:59:22