RE:Re: 转Utf8引来一堆乱码

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

RE:Re: 转Utf8引来一堆乱码

sharkwang
那请问在什么地方设置语言相关的内容才比较好,谢谢!

-Shark

________________________________

From: Xiao Lei Wu [mailto:[hidden email]]
Sent: Monday, May 22, 2006 11:16 AM
To: Luo Yong
Cc: [hidden email]
Subject: Spam:Re: 转Utf8引来一堆乱码



在任何的bashrc/profile文件里面设置语言相关的内容都是不好的习惯

Best Regards,

Zachary Wu (吴�~磊)
Software Engineer, Enterprise Content Management FVT, IBM China Software Development Lab
Tel: +86 10 82782244-3235. Fax: 82782244-2886 Tie Line: 915-2244-3235
Internet: [hidden email]
Notes ID: Xiao Lei Wu/China/IBM@IBMCN
Address: 8/F, Block A, Power Creative Building, No.1, East Road, Shang Di, Beijing 100085, P.R. China

"Luo Yong" <[hidden email]> 写于 2006-05-21 21:26:22:

> 我怀疑作者设置了~/.bashrc后忘记了,改换编码的时候只改了locale而没改动bashrc
>
> On 5/21/06, phyrster <[hidden email]> wrote:
> > On 20:25 Sun 21 May 2006, Luo Yong wrote:
> > > /bin/bash这个程序默认去读~/.bashrc
> > >
> > > ~/.bashrc里设成了什么编码就用什么编码.
> > 作者自己都说把编码转成了utf-8的。何必要在.bashrc里设置?
> >
> > dpkg-reconfigure locales 不就解决了吗?
> >
> >
> >
> > --
> > regards
> > phyrster
> >
> > Truth has no special time of its own.  Its hour is now -- always.
> >                 -- Albert Schweitzer
> >
> >
> > --
> > To UNSUBSCRIBE, email to [hidden email]
> > with a subject of "unsubscribe". Trouble? Contact
> [hidden email]
> >
> >



Reply | Threaded
Open this post in threaded view
|

Re: Re: 转Utf8引来一堆乱码

ze phyr
On 11:51 Mon 22 May 2006, [hidden email] wrote:
> 那请问在什么地方设置语言相关的内容才比较好,谢谢!
只要用 dpkg-reconfigure locales 就可以了。它会修改 /etc/environment.

或者用localeconf也可以。

下面是我的:

LANGUAGE="en_US.UTF-8"

### BEGIN DEBCONF SECTION FOR localeconf
# Do not edit within this region if you want your changes to be preserved
# by debconf.  Instead, make changes before the "### BEGIN DEBCONF SECTION
# FOR localeconf" line, and/or after the "### END DEBCONF SECTION FOR
# localeconf" line.
LANG=en_US.UTF-8
### END DEBCONF SECTION FOR localeconf


--
regards
phyrster


--
To UNSUBSCRIBE, email to [hidden email]
with a subject of "unsubscribe". Trouble? Contact [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Re: 转Utf8引来一堆乱码

cathayan
用en_US是无所谓,可如果喜欢看中文,还是不爽的。Console下又不装zhcon这种东西,只好是系统C,启动X时设定zh_CN,我原来是放在xinitrc里的,后来改用gdm,就放到.xsession里,后来gdm这家伙不学好,在缺省情况下不读这个文件了(先Defaultsession会读),干脆放到Xsession.d下面去了,输入法也在这里。

gdm自己也要设置语言,这个还没搞清楚它放在哪里。最郁闷的是Gterm只看CTYPE;gVim有时似乎会从上一次的Locale中回不过神来。

On 5/22/06, phyrster <[hidden email]> wrote:
On 11:51 Mon 22 May 2006, [hidden email] wrote:
> 那请问在什么地方设置语言相关的内容才比较好,谢谢!
只要用 dpkg-reconfigure locales 就可以了。它会修改 /etc/environment.

或者用localeconf也可以。

下面是我的:

LANGUAGE="en_US.UTF-8"

### BEGIN DEBCONF SECTION FOR localeconf
# Do not edit within this region if you want your changes to be preserved
# by debconf.  Instead, make changes before the "### BEGIN DEBCONF SECTION
# FOR localeconf" line, and/or after the "### END DEBCONF SECTION FOR
# localeconf" line.
LANG=en_US.UTF-8
### END DEBCONF SECTION FOR localeconf


--
regards
phyrster


--
To UNSUBSCRIBE, email to [hidden email]
with a subject of "unsubscribe". Trouble? Contact [hidden email]




--
[hidden email]
http://blog.cathayan.org