promotion image of download ymail app
Promoted

AppServ 2.5.8 輸出中文顯示亂碼

# Apache Web Server Version 2.2.4

# PHP Script Language Version 5.2.1

# MySQL Database Version 5.0.27

# phpMyAdmin Database Manager Version 2.9.2

以上是這2.5.8的板本

請問有人在寫入資料表 然後 再顯示出來時~ 中文是??? 號嗎??

當然 寫入時 資料表也是???號...

1 Answer

Rating
  • 1 decade ago
    Favorite Answer

    寫入或修改資料庫時請加

    mysql_query("SET NAMES 'big5'",$link);

    讀出時請加

    $result = mysql_query("SET NAMES big5");

    這應該能解決你的問題~~~有問題可以再問我

    Source(s): i am PD 幫公司製作的入口網站www.ezplay.cc
    • Commenter avatarLogin to reply the answers
Still have questions? Get your answers by asking now.