Windows

chcp

SafeChange code page

chcp 65001

Switches the console code page: 65001=UTF-8, 932=Shift_JIS. First suspect for mojibake.

Examples

  • chcp 65001Switch to UTF-8

Syntax

chcp [codepage]

Before you run it

Affects only this console.

Used when you see

Fixing mojibake
2
Switch the console code page and re-checkCompare under 65001 (UTF-8) and 932 (Shift-JIS).
See the whole flow →

Related commands

  • typePrint file contents
  • fileIdentify file type

The same reference, with no signal at all

Every command on this site, held on your device. The app adds 632 more: 1,510 commands and 120 fix flows, searchable with no connection. Free to install, no ads (some content is a one-time purchase).

Get it free on the App Store