Why have I got trouble with charset on echo?
$url = "http://ru.wikipedia.org";
$site=file_get_contents($url);
echo $site;
Why have I got trouble with charset on echo?
$url = "http://ru.wikipedia.org";
$site=file_get_contents($url);
echo $site;
Try putting header('Content-Type: text/html;charset=utf-8');
at the start of your file