Fedora16 sets the default encoding of Gedit Software

Source: Internet
Author: User
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)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.