From: Jun S. <js...@ju...> - 2003-07-28 17:51:53
|
The problem was finally solved when Alain pointed out that I was setting wrong value to LANG. Now I am getting greedy. :) Is there a way to automatically set LANG to zh_CN.gb2312 when I fire cxterm?> BTW, setting LANG to "zh_CN" seems to work too. Jun ----------------------------- On Tue, Jul 15, 2003 at 11:55:46AM +0200, Alain Bench wrote: > Hello Jun, > > On Sunday, July 13, 2003 at 3:00:26 PM -0700, Jun Sun wrote: > > > I tried to set [LANG] to "gb2312", but I got all "?????" marks in > > places of chinese characters. :( > > Pick in output of "locale --all-locales" a locale value using GB2312 > charset, perhaps zh_CN or zh_CN.gb2312, or build an en_US.gb2312 one > (man localedef). It has to exist there, before you assign it to LANG and > the like. > Ahh, I missed this email earlier. This actually solves my problem by export LANG=zh_CN.gb2312 I also note that some other apps (such as vim) start to display chinese correctly after this setting. However some others (such as less) still can't get it. But I am happy. Thanks a bunch. Jun > Then verify in Mutt ":set ?charset" gives "gb2312", otherwise set it > explicitly in muttrc. Also set in muttrc: > > | set +send_charset="us-ascii:iso-8859-1:iso-8859-15:windows-1252:iso-8859-2:windows-1 +250:gb2312:utf-8" > |