0
1

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.

Terminalで日本語を表示・入力するための環境変数LANGの設定方法

Posted at

ターゲット

Terminalで日本語を表示したり、入力したりしようとすると、文字化けしたり、日本語の入力自体ができないのを、解決したい人

事象

Terminalで日本語を表示しようとすると、以下のように「?????」と文字が正常に表示されない。
Screen Shot 2020-03-08 at 15.46.30.png

設定方法

環境変数を設定するファイル .bash_profile に、 export LANG=ja_JP.UTF-8 を追記する。
追記したら、Terminalを再起動する。
Screen Shot 2020-03-08 at 16.02.34.png

設定後

Terminalで日本語を表示したり、入力したりできるようになる。
Screen Shot 2020-03-08 at 16.04.43.png

0
1
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
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?