Is this a bug with emojis or am I missing something? #1759
-
I'm wondering if this has something to do with build or optimizations or something but this is odd. I wrote a little interactive Valentine's Day CLI for my wife, the emojis show up fine when running the application like this:
However, if I build debug, release, or publish etc. and then run from the exe:
The emojis are just question marks. In both cases, I am using the same terminal. Windows Terminal and pwsh.exe. Example line of code: AnsiConsole.MarkupLine(":rose: Let's build your poem!"); Example using Example after building and running the exe from the release folder: Note same issues with mingw64/cmd.exe. The exe shows ?? for both and dotnet run shows the rose (but it is like an ascii looking one. not the full color ones like pwsh shows. Should add this is with 0.49.1. I can try some other versions if there is something that may help. It doesn't matter to me I just used |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
You have powershell's encoding set properly? |
Beta Was this translation helpful? Give feedback.
You have powershell's encoding set properly?
https://spectreconsole.net/best-practices