Read Chinese(Unicode chars) text file using PHP

请求翻译

I am reading one Chinese text file (used PHP) with the help of below code :

    $myFile = "test.txt";
    $fh = fopen($myFile, 'r');
    $theData = fread($fh, filesize($myFile));
    fclose($fh); 
    print $theData;

test.txt file contents :

PHP是很好的语言。我喜欢这门语言。
我正在开发一个Web应用程序使用PHP。

After executing above mentioned code, I was not getting exact content which is in above mentioned file.

Is there any other way to read such file which contains Unicode characters and print it.

Please provide me your suggestions.

Thanks,

-Pravin

2个回答