big-5 is supported by php 4.3.X

This commit is contained in:
Lars Kneschke 2003-10-16 04:59:46 +00:00
parent fba07b8b8b
commit b2e4e6327e

View File

@ -250,10 +250,11 @@
if ($from == 'ascii') $from = 'iso-8859-1';
//echo "<p>autodetected charset of '$data' = '$from'</p>\n";
}
/* php does not seem to support gb2312 and big5
/*
php does not seem to support gb2312
but seems to be able to decode it as another charset
*/
if(strtolower($from) == 'gb2312' || strtolower($from) == 'big5')
if(strtolower($from) == 'gb2312')
{
$from = mb_detect_encoding($data);
}