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 and flow from this site, held on your device and searchable with no connection. Free to install, no ads.

Get it free on the App Store