protected function convertEncoding($message) { $lang = strtolower(I18n::getInstance()->getCurrentLanguage()); switch ($lang) { case 'zh_cn': $message = iconv("UTF-8", "GB2312//IGNORE", $message); break; case 'zh_tw': $message = iconv("UTF-8", "BIG5//IGNORE", $message); break; } return $message; }