'Basic' rendering and no emojis unless Console.OutputEncoding is set to UTF8 #1965
-
|
Information
Describe the bug Today I added the following line at the start of my program: And all of a sudden everything works. Is this line missing in the quickstart on https://spectreconsole.net/quick-start? Or is this a bug where Spectre.Console doesn't detect the correct output encoding? I assume setting the output encoding to UTF8 might also cause problems when mixing some strings contain UTF16 characters, as that is the default C# string type. To Reproduce Will render Additional context private static void Main(string[] args) |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
|
It's mentioned in the "Best practices" part: https://spectreconsole.net/best-practices It's not a limitation within Spectre.Console, but a limitation of the terminal's output encoding. |
Beta Was this translation helpful? Give feedback.
-
|
Thanks for the swift reply. I don't think I see setting the encoding via C# is explicitly mentioned. Are there any downsides I should consider? What do other apps do? |
Beta Was this translation helpful? Give feedback.
It's mentioned in the "Best practices" part: https://spectreconsole.net/best-practices
It's not a limitation within Spectre.Console, but a limitation of the terminal's output encoding.