Reputation: 6196
When I try to output "ᕦ( ͡° ͜ʖ ͡°)ᕤ" to console it's just a bunch of question marks.
I have tried messing with System.Console.OutputEncoding with no success.
How can I achieve my utmost important goal of printing the "ᕦ( ͡° ͜ʖ ͡°)ᕤ".
Upvotes: 0
Views: 3546
Reputation: 8831
This works reasonably well (as in: the shape is more recognizable):
Console.OutputEncoding = Encoding.Unicode;
Console.WriteLine("ᕦ( ͡° ͜ʖ ͡°)ᕤ");
Console.ReadLine();
But you need to change the console's default font to something like consolas. With font changed to Consolas it looks like:
With the default font it looks like:
And if you change the font but don't set the output encoding it looks like:
The console's default encoding is OEM Multilingual Latin 1; Western European (DOS)
e.g. "IBM850" or OEM United States
e.g. "IBM437".
However, as suggested in other comments: don't. Just don't. Here's why.
Upvotes: 3