0
0

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

日本語を含むPowerShellスクリプトの文字コード

推奨されている「UTF-8 with BOM」を設定します。
なお、私の環境ではデフォルトで設定された「UTF-8」では文字化けしました。

主に Windows アプリケーションと Windows PowerShell を使用する場合は、BOM または UTF-16 を使用した UTF-8 などのエンコードを使用することをお勧めします。
複数のプラットフォームで作業する場合は、BOM で UTF-8 を使用することをお勧めします。

設定方法

ファイルを保存する際に、以下のように設定します。
image.png

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?