Linux installation GBK/GB2312 program shows garbled how to do?

  

Many users have encountered garbled problems when installing GBK or GB2312 on Linux system. This is mainly caused by the system default language is uft8. There are five ways to solve this problem. The following small series will introduce you. The Linux installation GBK or GB2312 program shows a garbled solution.

Solution:

find etc /httpd /conf /directory httpd.conf

1. Solution one

Find & ldquo ;AddDefaultCharset UTF-8”, change “UTF-8” to “GB2312”

2.Solution 2

Find “AddDefaultCharset UTF-8”,“AddDefaultCharset UTF-8” changed to “#AddDefaultCharset UTF-8” that is, add a ”#” comment in front of it.

3.Solution 3

Find “AddDefaultCharset UTF-8”, “AddDefaultCharset UTF-8” to “AddDefaultCharset OFF”, to close

4. Solution 4

Then choose the above four options (recommended option two. three. four), restart the apache server.

Restart Apache

5. Solution 5

Use vi to edit the “DefaultLanguage nl” and change the “nl” to “ -CN”

Look for “AddDefaultCharset UTF-8”, “UTF-8” to “GB2312”

service apache restart

The above is Linux The solution to install GBK or GB2312 garbled is introduced. Five methods can solve the problem. The principle is to change UTF-8 to GB2312.

Copyright © Windows knowledge All Rights Reserved