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?

Power Platform CLI(pac)で日本語が文字化けしたとき

0
Last updated at Posted at 2026-09-24

Power Platform CLIを使用していたところ、日本語が文字化けしてしまう事象が発生。
調べてみると、文字コードの変更で正常に表示されたため、備忘録として残しておきます。

発生した問題

コマンドプロンプトで pac auth list を実行したところ、日本語が文字化けして表示されてしまった。
(正しくは「開発環境」と表示されるはず……)

Connected to... 髢狗匱迺ー蠅・

原因

chcp で確認すると、932(CP932) となっていた。

D:\>chcp
現在のコード ページ: 932

解決方法

文字コードを 65001(UTF-8)に変更する。
コマンドプロンプト上で、下記コマンドを実行。

chcp 65001

上記コマンドを実行した後、pac auth list を実行したところ、正常に日本語が表示された。

Connected to... 開発環境
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?