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