开发者

file_get_contents() PHP

开发者 https://www.devze.com 2022-12-23 21:26 出处:网络
Why have I got trouble with charset on echo? $url = \"http://ru.wikipedia.or开发者_JAVA技巧g\"; $site=file_get_contents($url);

Why have I got trouble with charset on echo?

$url = "http://ru.wikipedia.or开发者_JAVA技巧g";
$site=file_get_contents($url);
echo $site;


Try putting header('Content-Type: text/html;charset=utf-8'); at the start of your file

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号