Sheng Ying
Sheng Ying

Reputation: 161

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: ?"

Upvotes: 15

Views: 48620

Answers (2)

Unnat
Unnat

Reputation: 416

Since vscode uses xterm you will need to add a fallback icon font like FontAwesome mine is like this:

"Cascadia Mono", "FontAwesome"

This will fix it

Here is a screenshot: enter image description here

Upvotes: 0

Marshal
Marshal

Reputation: 4880

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

Upvotes: 13

Related Questions