LoginSignup
0
0

More than 1 year has passed since last update.

CMD(コマンドプロンプト)のデフォルト文字コードを変更する方法

Last updated at Posted at 2021-07-04

私は新卒で入社した開発者になります。
勉強中なので自分用メモとして残したいです。
もし間違っていたらご指摘していただけると幸いです。

文字コードの確認方法

chcp

私のCMDはこのように返ってきた
Active code page: 932

UTF-8に変更

chcp 65001

変更されるが、再起動したら元に戻る

デフォルトの文字コードを変更する方法

①スタート->実行-> regedit
以下レジストリを開く
②HKEY_LOCAL_MACHINE\Software\Microsoft\Command Processor\Autorun
値を以下に変更
③chcp 65001

もしAutorunがない場合

①スタート->実行-> regedit
以下レジストリを開く
②HKEY_LOCAL_MACHINE\Software\Microsoft\Command Processor

③Command Processorのフォルダを右クリック 新規 -> 文字列値
④作成したものを右クリックして名前をAutoRunに変更

⑤AutoRunをクリックして修正して以下に変更
chcp 65001

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