Get the App
SLTechnology News&Howtos  ›  Servers  › 

The solution of displaying garbled codes by installing GBK/GB2312 Program in Linux

Shulou Source: shulou.com Published: 2022-06-01 12:01:38 11月13日 Update

This article mainly explains "Linux installation GBK/GB2312 program display garbled solution", interested friends may wish to take a look. The method introduced in this paper is simple, fast and practical. Let's take you to learn "Linux installation GBK/GB2312 program display garbled solution"!

Solution:

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

1. Solution 1

Find "Add Default Charset UTF-8" and change "UTF-8" to "GB2312"

2. Solution 2

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

3. Solution 3

Find "AddDefaultCharset UTF-8" and change "AddDefaultCharset UTF-8" to "AddDefaultCharset OFF" to close the

4. Solution 4

Then choose one of the above four options (recommended option 2). Three. 4) Restart the Apache server.

restart Apache

5. Solution 5

Use vi editor to find "DefaultLanguage nl", change "nl" to "zh-CN"

Find "Add Default Charset UTF-8" and change "UTF-8" to "GB2312"

service apache restart

At this point, I believe that we have a deeper understanding of "Linux installation GBK/GB2312 program display garbled solution", may wish to actually operate it! Here is the website, more related content can enter the relevant channels for inquiry, pay attention to us, continue to learn!

Tags: UTF-8 methods solutions random codes programs content learning practical deeper that is interests practicality practicality simplicity of operation more friends servers comments directories Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno OPPO Reno Linux Shulou Tech Info Huawei MariaDB