|
|
@ -674,23 +674,27 @@ class rcube_charset
|
|
|
|
|
|
|
|
|
|
|
|
// Prioritize charsets according to current language (#1485669)
|
|
|
|
// Prioritize charsets according to current language (#1485669)
|
|
|
|
switch ($language) {
|
|
|
|
switch ($language) {
|
|
|
|
case 'ja_JP': // for Japanese
|
|
|
|
case 'ja_JP':
|
|
|
|
$prio = array('ISO-2022-JP', 'JIS', 'UTF-8', 'EUC-JP', 'eucJP-win', 'SJIS', 'SJIS-win');
|
|
|
|
$prio = array('ISO-2022-JP', 'JIS', 'UTF-8', 'EUC-JP', 'eucJP-win', 'SJIS', 'SJIS-win');
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
|
|
case 'zh_CN': // for Chinese (Simplified)
|
|
|
|
case 'zh_CN':
|
|
|
|
case 'zh_TW': // for Chinese (Traditional)
|
|
|
|
case 'zh_TW':
|
|
|
|
$prio = array('UTF-8', 'BIG-5', 'GB2312', 'EUC-TW');
|
|
|
|
$prio = array('UTF-8', 'BIG-5', 'GB2312', 'EUC-TW');
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
|
|
case 'ko_KR': // for Korean
|
|
|
|
case 'ko_KR':
|
|
|
|
$prio = array('UTF-8', 'EUC-KR', 'ISO-2022-KR');
|
|
|
|
$prio = array('UTF-8', 'EUC-KR', 'ISO-2022-KR');
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
|
|
case 'ru_RU': // for Russian
|
|
|
|
case 'ru_RU':
|
|
|
|
$prio = array('UTF-8', 'WINDOWS-1251', 'KOI8-R');
|
|
|
|
$prio = array('UTF-8', 'WINDOWS-1251', 'KOI8-R');
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
case 'tr_TR':
|
|
|
|
|
|
|
|
$prio = array('UTF-8', 'ISO-8859-9', 'WINDOWS-1254');
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
|
|
default:
|
|
|
|
default:
|
|
|
|
$prio = array('UTF-8', 'SJIS', 'GB2312',
|
|
|
|
$prio = array('UTF-8', 'SJIS', 'GB2312',
|
|
|
|
'ISO-8859-1', 'ISO-8859-2', 'ISO-8859-3', 'ISO-8859-4',
|
|
|
|
'ISO-8859-1', 'ISO-8859-2', 'ISO-8859-3', 'ISO-8859-4',
|
|
|
|