From 73d8277b401d791ccfb8d707368c4dd701f9a1dc Mon Sep 17 00:00:00 2001 From: Lars Kneschke Date: Sat, 11 Oct 2003 20:55:16 +0000 Subject: [PATCH] fixes for warning about unsupported charset --- phpgwapi/inc/class.translation_sql.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/phpgwapi/inc/class.translation_sql.inc.php b/phpgwapi/inc/class.translation_sql.inc.php index ee2051b731..7e9311443d 100644 --- a/phpgwapi/inc/class.translation_sql.inc.php +++ b/phpgwapi/inc/class.translation_sql.inc.php @@ -245,10 +245,10 @@ if ($from == 'ascii') $from = 'iso-8859-1'; //echo "

autodetected charset of '$data' = '$from'

\n"; } - /* php does not seem to support gb2312 + /* php does not seem to support gb2312 and big5 but seems to be able to decode it as another charset */ - if(strtolower($from) == 'gb2312') + if(strtolower($from) == 'gb2312' || strtolower($from) == 'big5') { $from = mb_detect_encoding($data); }