phpMyAdmin 中文亂碼解法

Edit phpMyAdmin-2.7.0-pl2/libraries/select_lang.lib.php:

在這一段裡:
// MySQL charsets map
$mysql_charset_map = array(

將 'utf-8' => 'utf8', 改成: 'utf-8' => 'latin1',

將: 'big5' => 'big5', 改成: 'big5' => 'latin1',

將:
'zhtw-big5' => array('zh[-_](tw|hk)|chinese traditional',
'chinese_traditional-big5', 'zh-TW'),

改成:
'zhtw-big5-utf-8' => array('zh[-_](tw|hk)|chinese traditional',
'chinese_traditional-big5', 'zh-TW'),

以上修改法取自 http://phpbb-tw.net/phpbb/viewtopic.php?p=212048&

進入 phpMyAdmin 的首頁,在 Language 的選項中選:"Chinese traditional (zhtw-big5-utf-8)".

若要 import 含有 big5 的 sql 檔,在"文字編碼檔案:"中選"latin1″,不要選 "big5″.

精選文章

讀取中...

This entry was posted in 測試-軟體 and tagged , . Bookmark the permalink.

發表迴響

您的電子郵件位址並不會被公開。 必要欄位標記為 *

*


*

您可以使用這些 HTML 標籤與屬性: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>