Fcitx input method configuration file garbled

Source: Internet
Author: User
Solve the fcitx configuration file garbled method a configuration file garbled problem, because the configuration file is GB2312 encoding, you can first convert to UTF-8 encoding, after modification, and then change back GB2312. 1. run gedit -- encodingGBK ~ /. Fcitx/config use gedit to open the configuration file of fcitx. isn't it garbled? 2. set

Solution 1: fcitx configuration file garbled
Configuration file garbled problem, because the configuration file is GB2312 encoding, you can first convert to UTF-8 encoding, modification, and then back GB2312.
1. run gedit -- encoding = GBK ~ first ~ /. Fcitx/config use gedit to open the configuration file of fcitx. isn't it garbled?
2. set
Code:
[Program]
Show font (medium) = *
The "*" character in "is changed to the Chinese font. PS: You may not upgrade the language file, but the font is usable if you do not upgrade it.
You can use the fc-list command and find the font to change it.
The Chinese font in the configuration file is incorrect. The second line of the configuration file is


Solution 2
Modify your. vimrc file to support gb2312, which will be automatically recognized.
Refer to my settings
Code:
Let & termencoding = & encoding
Set fileencodings = UTF-8, gbk, ucs-bom, cp936


Solution 3: fcitx configuration file garbled
ALT + F2 open the Run dialog box and run
Gconf-editor
Expand/apps/gedit-2/preferences/encodings /"
Edit "auto_detected" on the right to add "GB18030" to the top. In the future, gedit will be able to display Chinese characters normally.

 

Solution 4: fcitx configuration file garbled
It can be viewed in Firefox and cannot be modified.

 

Solution 5: fcitx configuration file garbled
Code:
Iconv-f GB18030-t UTF8 foo.txt-o foo1.txt
Convert the txt file to utf8 encoding.
If your txt file contains characters other than GB18030, the conversion will fail.
Code:
Man iconv
Check the iconv usage.

Related Article

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.