Dede releases static page garbled characters. dede is of gbk version.
The template is also gb2312
After a static page is generated, open it. The utf encoding is selected by the browser by default. garbled characters are displayed. change the browser encoding to gbk, and the display will be normal.
After I changed the server, the template was reversed and never moved.
Why?
Reply to discussion (solution)
Set the php. ini file default_charset = "gbk"
Set the php. ini file default_charset = "gbk"
Need to restart php?
Set the php. ini file default_charset = "gbk"
Need to restart php?
Well, restart APACHE.
Set the php. ini file default_charset = "gbk"
Need to restart php?
Well, restart APACHE.
No, it is garbled again after restart.
Set the php. ini file default_charset = "gbk"
Need to restart php?
Well, restart APACHE.
No, it is garbled again after restart.
There is no problem locally, right?
Set the php. ini file default_charset = "gbk"
Need to restart php?
Well, restart APACHE.
No, it is garbled again after restart.
Is the generated static page parsed using gbk?
Set the php. ini file default_charset = "gbk"
Need to restart php?
Well, restart APACHE.
No, it is garbled again after restart.
There is no problem locally, right?
Is on the linux system
Set the php. ini file default_charset = "gbk"
Need to restart php?
Well, restart APACHE.
No, it is garbled again after restart.
There is no problem locally, right?
Is on the linux system
Windows's default encoding is GBK, and Linux's default encoding is UTF-8. The edited Chinese characters in Windows are garbled characters in Linux. To solve this problem, modify the default Linux encoding to GBK. The method is as follows:
Method 1:
Vi/etc/sysconfig/i18n
LANG = "zh_CN.GBK"
SUPPORTED = "zh_CN.UTF-8: zh_CN: zh"
SYSFONT = "latarcyrheb-sun16"
Method 2:
Vi/etc/profile
Export LC_ALL = "zh_CN.GBK"
Export LANG = "zh_CN.GBK"
Set the php. ini file default_charset = "gbk"
After the problem is solved, the staff may use other software to reverse the data, and the code may be changed. just try again. thank you for your various methods!