回复
This understanding, however, when every time I use utf8, pages often severe garbled, ...
康盛老板就是我 发表于 2010-7-26 23:28
The content is garbled because of the software does not send a http header with a proper encoding, so your browser often do not know how to decode this content.
You have to:
1) Check the configuration if enabled to force encoding in http-header. (For example, UCHome has such setting in admin-center settings)
In discuzX1 see the next setting, enabling the http header encoding:
$_config['output']['forceheader'] = 1; // 1=Enable, 0=Disable
2) If there is no possibility to turn on such setting, you can add yourself a PHP command into your soft to force required encoding. For example, you can use this PHP instruction:
header("Content-Type: text/html; charset=utf-8");
|