21,891
社区成员
发帖
与我相关
我的任务
分享<?php
$file = fopen("liuyan.txt", "r") or exit("Unable to open file!");
//Output a line of the file until the end is reached
while(!feof($file)){
$string .= fgets($file);
}
fclose($file);
$chinese = iconv('ISO-8859-1', 'GB2312', $string);
echo $chinese;
?>