var s = "Hello π¨βπ©βπ§βπ¦"
echo s
See the screenshot at: https://masiarek.blogspot.com/2021/04/blog-post.htmlNone of them can display it and all of them display it differently.
If you write to a file instead of echo:
var s = "Hello π¨βπ©βπ§βπ¦"
writeFile("foo.txt", s)
And open the file it looks correct. I think Nim supports the family emoji but the terminals don't.
You are right. I have tried with classic classic emojis which have code from U+1F600 to U+1F64F. And, in my terminal, they are correctly displayed. But the four emojis which have code from U+01F466 to 01F469 are not correctly displayed.
I tried to display them in a text editor, with no success. It failed in VSCode for instance. But itβs OK in a web browser using the same font! So this is not (or not only) a font issue.
The Nim compiler is obviously exonerated here.
It seems that Nim is not guilty here. Itβs either a terminal issue or a font issue.