1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

CentOSの文字コードを設定する方法

Last updated at Posted at 2016-05-25

/etc/sysconfig/i18nを編集する

  • 以下の例ではUTF-8に設定。

    sed -i -e "s/LANG=.*/LANG=ja_JP\.UTF-8/g" /etc/sysconfig/i18n && source /etc/sysconfig/i18n
    
    LANG="ja_JP.UTF-8"
    SYSFONT="latarcyrheb-sun16"
    
  • 正しく設定しておかないと、こんなことでハマったりする。

1
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?