Printing the Copyright Symbol in a C# Console Application

This is a tiny little tip. I wanted to print the copyright symbol in a console application. The trick is to set the console output encoding to UTF8. If you don't, it prints a c instead of a ©. This applies to all characters outside the ASCII range.

Console.OutputEncoding = Encoding.UTF8;
Console.WriteLine("Copyright © 2015 Xoc Software");

1 comment :

  1. Wonderful blog! I found it while surfing around on Yahoo News. Do you have any suggestions on how to get listed in Yahoo News? I’ve been trying for a while but I never seem to get there! Appreciate it. Letter Printing