Ubuntu gedit Chinese garbled solution, ubuntugedit
- Install the gconf-editor package
Sudo apt-get install gconf-editor
- Run the gconf-editor program on the command line to enable the editor configuration interface.
Gconf-editor
Choose apps-> gedit-2-> preferences-> encodings, double-click the auto_detected option in the list on the right, open the Edit Key settings page, and click Add, add a new encoding method.
In versions earlier than 1204, this can be done .... However, I am currently using 1204, and there is no encodings option...
Use the command line!
Enter:
Gsettings set org. gnome. gedit. preferences. encodings auto-detected "['utf-8', 'gb18030', 'gb2312', 'gbk', 'big5', 'current', 'utf-16']"
Then use gedit to open the file. Chinese garbled file solved
Copyright Disclaimer: This article is an original article by the blogger and cannot be reproduced without the permission of the blogger.