※ 引述《PHP5 (Powered by Zend Engine2)》之銘言:
: header:
: Content-Type: text/html; charset=UTF-8
: <head>
: <meta http-equiv="Content-Type" content="text/html; charset=big5">
: ...
: </head>
: IE, fireefox 都會選 UTF-8
: meta 那一行有設等於沒設
: http://www.w3.org/International/O-charset 有提到
: server settings override in-document declarations.
: 在沒辦法掌控 server settings 的情況下,有什麼辦法 讓 <meta override header:
1. 檢查 php.ini 裡面設定 ;default_charset = "iso-8859-1"
2. apache httpd.conf
3. 在 php 程式裡面輸出:
ini_set('default_charset', 'utf-8');
--
Appleboy Blog: http://blog.Wu-Boy.com
Appleboy Life: http://life.wu-boy.com
迷你寫真部落格:http://mini101.twgg.org
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 163.29.208.22