6
6

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.

Linuxのシステムの文字コードを確認/編集する

Last updated at Posted at 2017-01-20

AWS EC2インスタンスで文字コードを変更する機会があったので備忘です。

■現状の文字コードを確認
echo $LANG
en_US.UTF-8

■文字コードを変更
sudo vi /etc/sysconfig/i18n

en_US.UTF-8 ⇒ ja_JP.UTF-8

■インスタンス再起動

■変更後の文字コードを確認
echo $LANG
ja_JP.UTF-8

以上です。

6
6
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
6
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?