❔ How do I write Ø in a .NET framework Console application?

UUNKNØWN2/12/2023
When I use Ø it gets outputted as O
MMODiX2/12/2023
AAngius2/12/2023
Seeing how it works in the repl, it's probably the fault of the terminal you're using
AAngius2/12/2023
Either the font has this character missing, or some terminal setting is responsible
AAngius2/12/2023
How to fix it with code, then? Chances are you can't
UUNKNØWN2/12/2023
I don't suppose you can make the application use a custom font and then embed it so the user doesn't need to install it?
AAngius2/12/2023
No, it's the terminal's setting
UUNKNØWN2/12/2023
I see, thank you for the help regardless
AAngius2/12/2023
You could try using
Console.OutputEncoding = System.Text.Encoding.UTF8;
AAngius2/12/2023
This should force the encoding to be UTF-8
AAngius2/12/2023
Whether the terminal supports it or not, is still another matter, though
UUNKNØWN2/12/2023
that did it, thank you 🙂
Image
AAngius2/12/2023
Nice
BBuddy2/12/2023
What are you making? :catpog:
UUNKNØWN2/12/2023
Just a simple application that automatically sets custom settings within Windows like; 24 hour clock, small taskbar etc..
AAccord2/13/2023
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.