Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why won't my console display the copyright symbol ©?

I am trying to write a C# console application the displays the copyright symbol ©. According to this StackOverflow answer that should be possible. However, on my Windows 8 console display I get the lowercase letter c printed out. What could be wrong?

like image 268
Jesse Avatar asked Feb 16 '23 10:02

Jesse


1 Answers

Found the solution. Add this before your Console.WriteLine commands:

Console.OutputEncoding = Encoding.UTF8;

That same sample you linked to works if I do that.

Credit for the solution: How to make console be able to print any of 65535 UNICODE characters

Marking this as community wiki since I'm not really the one who knew the answer.

like image 152
Mark Allen Avatar answered Feb 20 '23 16:02

Mark Allen