13

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

Kms
  • 1,082
  • 2
  • 11
  • 27
Sheng Ying
  • 131
  • 1
  • 1
  • 5
  • There is a possible fix at https://github.com/Microsoft/vscode/issues/60330. Does that work for you? – Mark Aug 23 '19 at 04:26
  • @Mark While trying to search for a solution to my problem, I did come across the site that you have linked. Sadly, it didn't solve the issue for my case :( – Sheng Ying Aug 23 '19 at 17:56

2 Answers2

9

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

Marshal
  • 4,452
  • 1
  • 23
  • 15
1

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

Unnat
  • 398
  • 2
  • 12
  • Some more information would be helpful, like where do you put this configuration? – iMe Aug 09 '23 at 20:58