file_get_contents Character Problem

The solution of file_get_contents Character Problem is in this article



file_get_contents causes Character problems if the content is non-english. You can solve this problem with these codes.

[php]
header(‘Content-Type: text/plain; charset=utf8’);
$data = @file_get_contents($url)
$data = iconv("latin5", "utf-8", $data);
[/php]