Because of the different encoding formats, garbled characters often occur when you open a Windows text file in ora. It is often found that the encoding is incorrect when you open the file. If you close the file, select the correct encoding to open the file again, which is very uncomfortable. Method 1: Enter the command $ gsettingssetorg on the terminal. gnome. gedit. preferences. encodingsauto-detected "['utf-8', 'gb18030', 'gb2312', 'gbk', 'B
Because of the different encoding formats, garbled characters often occur when you open a Windows text file in ora. It is often found that the encoding is incorrect when you open the file. If you close the file, select the correct encoding to open the file again, which is very uncomfortable.
Method 1:
Terminal input command:
$ Gsettings set org. gnome. gedit. preferences. encodings auto-detected "['utf-8', 'gb18030', 'gb2312', 'gbk', 'big5', 'current', 'utf-16']"
$ Gsettings set org. gnome. gedit. preferences. encodings shown-in-menu "['utf-8', 'gb18030', 'gb2312', 'gbk', 'big5', 'current ', 'utf-16']"
Method 2:
Install dconf-editor (upgraded version of gconf-editor ):
Enter the command $ sudo yum install dconf-tools in the terminal
Enter the command in the terminal: $ dconf-editor
Choose org> gnome> gedit> preferences> encodings.
Add 'gb18030' to the value of auto-detected and write it in the second place;
Add 'gb18030' to the value item of shown-in-menu and write it in the second place.
(Corresponding to the value in brackets in the method)
(In Fedora 14 and earlier versions, enter the command $ sudo yum install gconf-editor on the terminal to install gconf-editor, and then enter the command: $ gconf-editor click apps> gedit-2> preferences> auto-detected in encodings, and add GB18030, GBK, and GB2312 in the double-click pop-up dialog box)