[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: 控制台显示中文问题; Problem about View Chinese text in Console of Debian woody 30r2



????telnet??ssh???????????

cp wrote:

???

DEBIAN woody 30r2 i386,
??? X ,??? zhcon, unicon, ????????????
????? ls, cat, editor, lynx ???????.

???????,?????zhcon, unicon, cce, ??
?????????????????

??????????
1. dpkg-reconfigure locales
2. /etc/locale.gen ?? zh_CN GB2312; locale-gen
3. ? /etc/enviornment ???? LANG=zh_CN
4. ~/.bashrc ?? LANG=zh_CN; LC_CTYPE=zh_CN
5. ???locale??GB2312, default locale ?? C ?? zh_CN

????????????,?? ls -e,?????????,
?ls -e 2>errmsg; less errmsg????NON-ASCII??,????????????,
???????????,???????????

?????????? ??

??


If you cannot read chinese, please read this, or please ignore the text below.

Hi,
I'm using woody 30r2 on a i386 platform,
and I want to view Chinese in console without `zhcon' or `unicon' installed.
So that commands like `ls', `cat', `editor', `lynx' and so on,
could display Chinese characters in text mode console.

I have read a lot of articles about this,
most of them tell that I should install some additional software packages,
I dont want to do this since I think that's not elegent.
I want native support of Chinese language in DEBIAN.

My efforts listed below:
1. "dpkg-reconfigure locales", where I selected zh_CN package;
2. Add a line "zh_CN GB2312" to "/etc/locale.gen", then run "locale-gen";
3. Add "LANG=zh_CN" into "/etc/enviornment" and re-login;
4. Add "LANG=zh_CN; LC_CTYPE=zh_CN" to my "~/.bashrc" and re-login;
5. When installing select "zh_CN" in locales, set default locale to "C" or "zh_CN";

all above seemed not work,

the only effect was when I typed a wrong command in console such as "ls -e",
I got a error message contains non-ascii characters,
"ls -e 2> errormsg; less errormsg" will show hex value of these non-ascii characters,
ex. "<AB>" and "<B5>" in output of "less",

the number of these non-ascii chars was odd(1,3,5, ...) or even(2,4,6,...),
but one Chinese character always contains two bytes,
so I guess there must be errors somewhere,
and I couldnot decide where it sits.

Would anyone please help me?
Thanks

I'm NorthWind from China

------------------------------------------------------------------------
Do you Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs <http://pa.yahoo.com/*http://us.rd.yahoo.com/hotjobs/hotjobs_mail_signature_footer_textlink/evt=23983/*http://hotjobs.sweepstakes.yahoo.com/careermakeover>




Reply to: