本站正式轉換為 UTF-8 網站

仔細看了對岸網友細心撰寫的 utf-8_handbook_version5,總算解決得差不多。

http://xoops.org.cn/modules/news/view.article.php/c1/440

  1. 核心模組。這邊我要英文介面,所以把 xoops 2.0.16 english 語系資料夾複製一份改名為 tchinese,修改 global.php 中的幾個選項 (charset 等) 之後上傳
  2. 其他模組。刪掉 big5 的 tchinese,放上正確的 utf-8 語系檔。要不就是都不放,保留預設的英文
  3. 匯出 mysql 備份檔。用 convertz 轉換成 utf-8 文件,之後根據對岸 handbook 中所述,細心修改每個 default charset 的值為 utf8
  4. 我的 webhosting 空間使用 mysql 4.1,因此根據 handbook 中所述,修改 class\mysqldatabase.php,插入一行避免 mysql 顯示亂碼
  5. 上傳資料庫
  6. 清除 template_c 跟 cache

過程中或許有些細節不復記憶。不過總算是大致完成。

Leave a Reply

Your email address will not be published. Required fields are marked *