Posted by: smallonely | July 16, 2009

Linux 中 locale 的問題 (unreadable characters problem in Linux)

最近一台機器上 locale 設定怪怪的…

經常出現亂碼, e.g.

irattach 撌脣?甇?
irqbalance (pid 4487) 甇?珯?瑁?銝?..
iscsid 撌脣?甇?
kadmind 撌脣?甇?
kpropd 撌脣?甇?
krb524d 撌脣?甇?
krb5kdc 撌脣?甇?

—-
解決的方法很簡單,
改一下 /etc/sysconfig/i18n
====
#LANG=”zh_TW.UTF-5″
LANG=”en_US”
LC_ALL=”en_US”
SYSFONT=”latarcyrheb-sun16″
export LC_ALL
====

然後再度 login 就好了 :>


最近實在太忙, 好久沒有新文章,
分享一篇工作上遇到的小問題充數一下 :p


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Categories

%d bloggers like this: