Is production: true
#windows #migrated #scala #encoding

Title: UTF 8 support in Windows Cmd

Created: 17 Mar 2023 Modified: 17 Mar 2023

Description: Tried using scala repl in windows, chinese words now showing correctly. The scala repl is opened with windows cmd. After some googling and test in machine. Found some usage hints about the the displaying of chinese or UTF8 character in CMD or powershell.



[Link]

Preparation

Open the cmd or powershell properties

1. Code page setting

Sometimes the code page doesn’t support UTF8

Type chcp 65001 to switch the code page

[Legacy Link]