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

PowerShellで日本語の文字化けを直したい。

Posted at

やりたい事

パワーシェルでこのように日本語が文字化けするのを直したい。

image.png

現在の文字コードを確認

chcp(CHangeCodePage )で現在の文字コードを確認

powershell
 chcp

Active code page: 65001

主な文字コード
65001:utf-8
932:shift_jis

詳しくはこちら

文字コードを変更

今回は 65001:utf-8 にします。

powershell
 chcp 65001

パワーシェルを一回閉じて再起動

image.png

これでパワーシェルの日本語が文字化けしなくなります。

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