我了解到ISO-8859-1是一个单字节字符集.
HTTP标头和元标记告诉它使用ISO-8859-1作为字符编码.
¼ÈØOVA¢: ÜÍß‚Äí 1.28 ...
如何在单字节编码中使用双字节字符?
我不了解这一点并不是好奇心.由于不了解上述问题,我的任务之一被搁置了.
更新:他们正在使用字体www.manoramaonline.com/portal/mmcss/Manorama.ttf,我认为Manaorama字体中的一些字符使用两个字节.
UPDATE2:我尝试使用以下代码将文档从ISO-8859-1转换为UTF-8.
$t = file_get_contents('http://www.manoramaonline.com/cgi-bin/MMOnline.dll/portal/ep/malayalamContentView.do?tabId=11&programId=1073753760&BV_ID=@@@&contentId=15238737&contentType=EDITORIAL&articleType=Malayalam%20News');
// Change the charset info in meta-tag
$t = str_replace('ISO-8859-1', 'UTF-8', $t);
file_put_contents('t.html', utf8_encode($t));
那个时候缺少上面选择的字符.