How to make Chinese characters display correctly in Gentoo?
I intsalled gentoo from stage3. All is OK but I cannot see Chinese Characters well in gnome, mozilla, or the terminal. They are either displayed as ??? or squares containing four hex numbers. All my locale is POSIX. I am wondering if I have to rebuild all my packages to have Chinese support. Someone tells me I have to add +nls +cjk flags and recompile all the packages. Any help will be greatly appreciated.
I do this in slackware but it should probally work in gentoo also.I would download any international fonts (msgothic,mssong) then make a director in /usr/share/fonts/TTF. Run as root in the font directory /usr/X11R6/bin/mkfontscale,/usr/X11R6/bin/mkfontdir,/usr/X11R6/bin/fc-cache.Then edit your X11F86Config-4 or xorg.conf and add the new font path and you should be able to display international fonts.
I followed your instructions, Hitokiri. Thanks very much. I can use fcitx to input Chinese and see Chinese web pages. But problem remains when I mount a fat partition with the option iocharset=gb2312. Chinese filenames in the partition still cannot be displayed properly.
BTW: your desktop is cool.
I got this from a Faq .
NTFS stores all file and directory names in Unicode which can represent any character from any language. By default the Linux NTFS driver converts the names to ASCII which is OK for some people, but no good if your languages includes letters like å or é.
NLS (Native Language Support) controls how characters are displayed. You can choose either utf8 which, like Unicode, can represent all characters, or your own codepage, e.g. iso8859-1 (Western Europe), iso8859-2 (Central Europe), gb2312 (Simplified Chinese), iso8859-8 (Hebrew). Below are some example mount commands:
mount /dev/hda1 /mnt/windows -t ntfs -r -o nls=utf8
mount /dev/hda1 /mnt/windows -t ntfs -r -o nls=iso8859-2
mount /dev/hda1 /mnt/windows -t ntfs -r -o nls=gb2312
Ignore the ntfs parts.Try searching for NLS and you might find a better answer.
Someone got it working it debian here .
Try adding codepage=936 before iocharset=gb2312.
You might want to look at http://dev.gentoo.org/~liquidx/chinese/chinese-guide.html.
Or just to install the fonts the gentoo way,
|All times are GMT -5. The time now is 11:12 AM.|