Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to solve the problem of Chinese garbled codes in gedit under ubuntu system

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly explains "how to solve the problem of Chinese garbled code in gedit under the ubuntu system". The content in the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "how to solve the problem of Chinese garbled code in gedit under the ubuntu system".

Ubuntu gedit Chinese garbled looks very annoying, this article provides two solutions, terminal command line approach or graphical interface operation approach, in fact, the principle is to increase the type of coding, the problem is displayed as shown below, check the contents of the document, find garbled

Method 1: terminal approach

1. Open the terminal

2. Enter the following content in the terminal and enter

Copy the contents to the clipboard

Gconftool-2-set-type=list-list-type=string / apps/gedit-2/preferences/encodings/auto_detected "[UTF-8,CURRENT,GB18030,BIG5-HKSCS,UTF-16]"

Method 2: graphical interface approach

1. Hold down Alt-F2 at the same time to open the Run Application window.

2. Enter "gconf-editor" and click "Run" to enter the Configuration Editor interface.

3. Click the "+" sign on the left to find / apps/gedit-2/preferences/encodings, and click

4. Right-click auto_detected and click "Edit Key"

5. Click "Add", enter "GB18030" at New list value, and click OK

6. Select "GB18030" at the bottom of the list, click "Up" on the right, until "GB18030" moves to the top of the list.

7. Click OK to close Configuration Editor

8. Check the contents of the document again, and the garbled code disappears

Note: do not type incorrectly on the command line.

Thank you for your reading, the above is the content of "how to solve the problem of Chinese garbled code in gedit under the ubuntu system". After the study of this article, I believe you have a deeper understanding of how to solve the problem of Chinese garbled code in gedit under the ubuntu system. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report