Install gbk/gb2312 program garbled solution in Linux

Source: Internet
Author: User


Some times our new VPS installs the GBK program when will discover the garbled problem, below we may use the following method to solve.

Find the httpd.conf in the etc/httpd/conf/directory

1. Solution One

Find "Adddefaultcharset UTF-8" and Change "UTF-8" to "GB2312"

2. Solution II

Find "Adddefaultcharset UTF-8" and change "Adddefaultcharset UTF-8" to "#AddDefaultCharset UTF-8" to add a "#" comment before it.

3. Solution III

Find "Adddefaultcharset UTF-8" and change "Adddefaultcharset UTF-8" to "adddefaultcharset off" so that you can turn off

4. Solution IV

Then choose one of the top four options (recommended option two. Three. four) and restart the Apache server.
5. Restart Apache

6. Programme V

Use VI Edit to find the "DefaultLanguage nl" in which "NL" Change to "ZH-CN"
Then look for "Adddefaultcharset UTF-8" and Change "UTF-8" to "GB2312"

Service Apache Restart

This can solve the problem of the VPS garbled!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.