Cannot display Chinese and Japanese characters.

Issues related to software problems.

Cannot display Chinese and Japanese characters.

Postby Afante » 2008/12/13 05:32:27

I just installed CentOS 5.2.

I have both fonts-japanese and fonts-chinese installed.

But I cannot see characters displayed correctly. All Chinese and Japanese characters are displayed as blocks of hexadecimals, except Japanese kana.

How can I make them displayed correctly?

*** Appendix 1: /etc/X11/xorg.conf ***

# Xorg configuration created by system-config-display

Section "ServerLayout"
Identifier "single head configuration"
Screen 0 "Screen0" 0 0
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Synaptics" "CorePointer"
EndSection

Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
Option "XkbModel" "pc105"
Option "XkbLayout" "us"
EndSection

Section "InputDevice"
Identifier "Synaptics"
Driver "synaptics"
Option "Device" "/dev/input/mice"
Option "Protocol" "auto-dev"
Option "Emulate3Buttons" "yes"
EndSection

Section "Monitor"
Identifier "Monitor0"
ModelName "LCD Panel 1024x768"
### Comment all HorizSync and VertSync values to use DDC:
HorizSync 31.5 - 48.0
VertRefresh 56.0 - 65.0
Option "dpms"
EndSection

Section "Device"
Identifier "Videocard0"
Driver "savage"
EndSection

Section "Screen"
Identifier "Screen0"
Device "Videocard0"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
Depth 24
EndSubSection
EndSection


*** Appendix 2: /etc/X11/fs/config ***

#
# xfs font server configuration file
#

# allow a max of 10 clients to connect to this font server
client-limit = 10

# when a font server reaches its limit, start up a new one
clone-self = on

# alternate font servers for clients to use
#alternate-servers = foo:7101,bar:7102

# where to look for fonts
catalogue = /usr/share/X11/fonts/misc:unscaled,
/usr/share/X11/fonts/75dpi:unscaled,
/usr/share/X11/fonts/100dpi:unscaled,
/usr/share/X11/fonts/Type1,
/usr/share/X11/fonts/TTF,
/usr/share/fonts/default/Type1,
,
/usr/share/fonts/chinese/misc:unscaled,
/usr/share/fonts/chinese/misc,
/usr/share/fonts/chinese/TrueType,
/usr/share/fonts/japanese/misc:unscaled,
/usr/share/fonts/japanese/misc,
/usr/share/fonts/japanese/TrueType
# in 12 points, decipoints
default-point-size = 120

# 75 x 75 and 100 x 100
default-resolutions = 75,75,100,100

# use lazy loading on 16 bit fonts
deferglyphs = 16

# Log errors via syslog.
use-syslog = on

# For security, don't listen to TCP ports by default.
no-listen = tcp


Thanks!
Afante
 
Posts: 13
Joined: 2008/12/13 05:09:43

Re: Cannot display Chinese and Japanese characters.

Postby scottro » 2008/12/13 12:35:54

Can you be a bit more specific? Are you talking all applications? An X terminal?
Assuming you have the fonts, which you do, to view things in an Xterm you need a terminal capable of displaying it. I 'm not sure that xterm can, but uxterm should be able to, especially if using UTF-8 which is gradually becoming the default for Asian double byte languages, at least for Japanese.

You might have to set LC_CTYPE, for example

LC_CTYPE=en_US.UTF-8 uxterm.

For web pages, you sometimes have to use the View=>Character Encoding menu--though in theory, it should be automatic, in practice there are times when it doesn't work.

What are you trying to view that you are seeing as these blocks. (By blocks, you don't mean squares, do you? Because if you're just seeing blank squares, that means the system isn't finding the fonts, which is a different issue.)
scottro
Forum Moderator
 
Posts: 1715
Joined: 2007/09/03 21:18:09
Location: NYC

Re: Cannot display Chinese and Japanese characters.

Postby Afante » 2008/12/19 02:38:16

Thank you for your reply!

The problem happened under GNOME windows environment. Not only web browser, but also any place where Asian character appears.
By block, I didn't mean blank boxes, but boxes with hexadecimal in it.

But, eventually I saw the characters. I removed the fonts and installed them again.

Now, I can enjoy CentOS5.

Thank you!
Afante
 
Posts: 13
Joined: 2008/12/13 05:09:43

Cannot display Chinese and Japanese characters.

Postby toracat » 2008/12/19 03:02:39

Glad to hear you've sorted it out.
よかった !
User avatar
toracat
Forum Moderator
 
Posts: 6695
Joined: 2006/09/03 16:37:24
Location: California, US

Re: Cannot display Chinese and Japanese characters.

Postby AlanBartlett » 2008/12/19 15:57:45

My friendly Babel Fish looked at toracat's よかった !, blinked and then whispered It was good! into my ear. :-)
User avatar
AlanBartlett
Forum Moderator
 
Posts: 8975
Joined: 2007/10/22 11:30:09
Location: ~/Earth/UK/England/Suffolk

Re: Cannot display Chinese and Japanese characters.

Postby scottro » 2008/12/20 01:43:47

You could have just asked. :)

Pronounced yokatta.
scottro
Forum Moderator
 
Posts: 1715
Joined: 2007/09/03 21:18:09
Location: NYC

Re: Cannot display Chinese and Japanese characters.

Postby puchung » 2009/03/12 16:30:09

Hi,

Please do the following to enable the Chinese Support.

- in the terminal, type "su -" to gain root access of the system
- type: yum groupinstall "Chinese Support"

and you will get all the necessary Chinese language support packages for the application, like OpenOffice and Firefox, installed on your system.


You can also use the same command for Japanese or Korean. It would be like the following.

yum groupinstall "Japanese Support"

or

yum groupinstall "Korean Support"


Please let me know if it works or not.
puchung
 
Posts: 5
Joined: 2009/03/11 01:22:03
Location: Belgium

Re: Cannot display Chinese and Japanese characters.

Postby toracat » 2009/03/12 18:03:50

Maverick,

Thank you for posting this tip. I never knew such group names existed. They do not show up when "yum grouplist" is run but do work with "yum groupinstall Foo Support".
User avatar
toracat
Forum Moderator
 
Posts: 6695
Joined: 2006/09/03 16:37:24
Location: California, US

Re: Cannot display Chinese and Japanese characters.

Postby scottro » 2009/03/12 21:25:22

You two are on all CJK threads today I see. :) At least, toracat, you only misspelled group in one thread. Unlike myself, who never mistue--errm mistyps--errm, mistypes.

Toracat, I'm surprised you didn't know about that one--it's one minor drawback of yum, grouplist will show something like languages, but not the individual language packages available.

For me, I prefer to not install them actually, because they give me far more than I need. For example Japanese will bring in canna and kinput2, which is so CentOS 4.

So, let me join with toracat in thanking Maverick. I have to go back and review my Japanese page and make sure I have this mentioned.
scottro
Forum Moderator
 
Posts: 1715
Joined: 2007/09/03 21:18:09
Location: NYC

Re: Cannot display Chinese and Japanese characters.

Postby AlanBartlett » 2009/03/12 22:55:33

With the speed of a tora and the silent stealth of a ninja, a certain cat will use the cover provided by a moderator's cloak to issue a sed 's/gouplist/grouplist/' command and thus spoil Scott's fun. :roll:
User avatar
AlanBartlett
Forum Moderator
 
Posts: 8975
Joined: 2007/10/22 11:30:09
Location: ~/Earth/UK/England/Suffolk

Next

Return to CentOS 5 - Software Support

Who is online

Users browsing this forum: No registered users and 5 guests