Ubuntu gedit Chinese garbled looks very annoying, this article provides two kinds of solutions, Terminal command line or graphical interface to operate the way, in fact, the principle is to increase the type of coding, the problem shows the following figure, view the contents of the document, found garbled
Method One: Terminal approach
1, open the terminal
2, in the terminal input the following content, enter
Copy Content to 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 Two: Graphical interface approach
1, hold down alt-f2 at the same time, open "Run Application" window
2, input "Gconf-editor", click "Run", enter Configuration Editor interface
3, click on the left "+" number to find/apps/gedit-2/preferences/encodings, and click
4, right key auto_detected, click "Edit key"
5, click "Add", enter "GB18030" in new list value, click OK
6, select the bottom of the list "GB18030", click on the right "up" until "GB18030" moved to the top of the list
7, click OK to close configuration Editor
8, view the contents of the document again, garbled disappeared
Note: command line commands do not enter an error.