Skip to content

Instantly share code, notes, and snippets.

@ytez
Created May 24, 2022 01:57
Show Gist options
  • Save ytez/0f0f44862d4b0a1996ae9d80e3d1719c to your computer and use it in GitHub Desktop.
Save ytez/0f0f44862d4b0a1996ae9d80e3d1719c to your computer and use it in GitHub Desktop.
default code page を 437 (OEM-US) から 932 (Shift-JIS) に変える [Win10]

default code page を 437 (OEM-US) から 932 (Shift-JIS) に変える [Win10]

背景

  • メモ帳で ANSI 保存しても Shift-JIS にならないことに気づいた
  • コマンドプロンプトで chcp を見ると 437 になっている

原因

  • システムロケールが日本になっていないことが原因

システムロケールの変更

  • Control Panel → Region → Administrative → Change system locale
  • Current system locale: Japanese (Japan) とする
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment