Console.OutputEncoding = Encoding.UTF8;
Console.WriteLine("Copyright © 2015 Xoc Software");
Greg Reddick is a noted speaker, author, and software engineer. This blog covers all aspects of programming, particularly for Windows, and other related topics.
2015-10-15
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.
Subscribe to:
Post Comments
(
Atom
)
No comments :
Post a Comment
Note: Only a member of this blog may post a comment.