summaryrefslogtreecommitdiff
path: root/program/include/rcube_charset.php
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2012-11-15 13:58:57 +0100
committerAleksander Machniak <alec@alec.pl>2012-11-15 13:58:57 +0100
commitc8558a182cc218e4aba89f6c42a9e39de20bc0e6 (patch)
treeef45ff608e7d96ff459b3ba906f47fe91b232eee /program/include/rcube_charset.php
parent0679b22150dfded4383d0729940a888fcc7a1b99 (diff)
Move BIG5 at the end of charsets list in detect()
Diffstat (limited to 'program/include/rcube_charset.php')
-rw-r--r--program/include/rcube_charset.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/program/include/rcube_charset.php b/program/include/rcube_charset.php
index e6da882ac..4d24ed135 100644
--- a/program/include/rcube_charset.php
+++ b/program/include/rcube_charset.php
@@ -671,12 +671,12 @@ class rcube_charset
// FIXME: the order is important, because sometimes
// iso string is detected as euc-jp and etc.
$enc = array(
- 'UTF-8', 'SJIS', 'BIG5', 'GB2312',
+ 'UTF-8', 'SJIS', 'GB2312',
'ISO-8859-1', 'ISO-8859-2', 'ISO-8859-3', 'ISO-8859-4',
'ISO-8859-5', 'ISO-8859-6', 'ISO-8859-7', 'ISO-8859-8', 'ISO-8859-9',
'ISO-8859-10', 'ISO-8859-13', 'ISO-8859-14', 'ISO-8859-15', 'ISO-8859-16',
- 'WINDOWS-1252', 'WINDOWS-1251', 'EUC-JP', 'EUC-TW', 'KOI8-R',
- 'ISO-2022-KR', 'ISO-2022-JP'
+ 'WINDOWS-1252', 'WINDOWS-1251', 'EUC-JP', 'EUC-TW', 'KOI8-R', 'BIG5',
+ 'ISO-2022-KR', 'ISO-2022-JP',
);
$result = mb_detect_encoding($string, join(',', $enc));