horde/imp display gb2312 character interim solution
While too many gb2312 character in horde cannot converted as UTF-8, to give it a quick workaround, I’d just enforce horde to treat gb2312 encoding to gbk which is more compatible for chinese double-byte character.
Replace the lines in lib/Horde/String.php from
if (!$output && String::extensionExists(‘mbstring’)) {
$output = @mb_convert_encoding($input , $to, $from);
}
to
if (!$output && String::extensionExists(‘mbstring’)) {
if ($from == ‘gb2312′) {
$from = ‘GBK,GB2312′;
}
$output = @mb_convert_encoding($input , $to, $from);
}