Reputation: 161
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: 48618
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
Upvotes: 0
Reputation: 4880
In VS Code Integrated Terminal, type command: chcp 65001
Then it should display unicode properly.
Upvotes: 13