Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to correctly display unicode characters in VS Code's Integrated Terminal?

As per title, I can't seem to get VS Code Integrated Terminal to correctly display unicode characters. They always show up as question marks (?) in the integrated terminal.

I've ensured that the files are saved with encoding UTF-8 which seemed to be the only solution suggested across all the answers I've seen so far, but to no avail.

System.out.println("A unicode check mark character is supposed to look like this: \u2713");

Expected output: "A unicode check mark character is supposed to look like this: ✓"

Actual output: "A unicode check mark character is supposed to look like this: ?"

like image 649
Sheng Ying Avatar asked Aug 22 '19 15:08

Sheng Ying


Video Answer


1 Answers

In VS Code Integrated Terminal, type command: chcp 65001 Then it should display unicode properly.

like image 200
Marshal Avatar answered Oct 24 '22 01:10

Marshal