Incorrect display of 4 byte emojis in vs code integrated terminal

Viewed 778

Why is my VSCode integrated terminal not able to show correct emojis:

Text file:

 Emoji

which produces with cat file.txt the output:

� Emoji

I use a proper UTF8 font MesloLGS NF (pk10 powerline font). I use git-bash.exe. Starting git-bash.exe from the task bar (mintty terminal?) works fine with these emojis. Also 3 bytes emojis work.

Any clue very welcome.

1 Answers

Changing codepage to chcp.com 65001 and using the newest VS Code cat A.txt with content Emoji works.

Related