Solve the problem that Firefox3.0.2 displays Chinese characters as garbled characters and lacks Chinese Input Methods on RHEL5.4.

Source: Internet
Author: User
1. Firefox3.0.2 display Chinese characters as garbled characters. Solution steps: 1. the font of WindowsXP is generally stored in the C: \ WINDOWS \ Fonts directory, copy the font file you need to linux (the font file is in ttf format ). (Only the following files are copied: simfang. ttf, simhei. ttf, simkai. ttf) 2. copy the font file to the/usr/share/fonts directory, and then execute the following command & nb

1. Firefox 3.0.2 displays Chinese characters as garbled characters

Solution:

1. the font of Windows XP is generally stored in the C: \ WINDOWS \ Fonts directory. copy the font file you need to linux (the font file is in ttf format ).
(Only the following files are copied: simfang. ttf, simhei. ttf, and simkai. ttf)

2. copy the font file to the/usr/share/fonts directory and run the following command:
Mkfontscale
Mkfontdir // these two commands generate the font index information
Fc-cache // update the font cache

3. You can view the Chinese webpage.

Summary:
The problem with this method is that the title bar of Firefox still cannot display Chinese characters normally.

(This problem has been solved when the Chinese Input Method is installed below .)

2. Chinese Input Method missing

Solution:

1. Download little penguin Input Method

Wget http://www.fcitx.org/download/fcitx-3.6.3.tar.bz2-c

2. Decompress * .tar.bz2

Tar-xjvf fcitx-3.6.3.tar.bz2

3. Compile and install

./Configure -- prefix =/usr/local/

Make

Make install

4. Create a link

Cd/usr/local/bin

Ln-sf fcitx chinput

5. Edit ~ /. Bashrc (root permission is not required)

Export XMODIFIERS = "@ im =/usr/local/bin/fcitx"

Export XIM = "/usr/local/bin/fcitx"

Export XIM_PROGRAM = "/usr/local/bin/fcitx"

Export LANG = zh_CN.UTF-8

Export LC_CTYPE = zh_CN.UTF-8

Export LC_ALL =

6. Execute the following command and restart:

Source ~ /. Bashrc

/Usr/local/bin/fcitx &

7. After entering the system again, run the following command:

/Usr/local/bin/fcitx

Then there will be a pencil icon and input method column, you can use Ctrl + Space to enter Chinese.

Summary:

The problem with this method is that the system desktop is displayed in Chinese.

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.