Show UTF-8 characters in console

There are some hacks you can find that demonstrate how to write multibyte character sets to the Console, but they are unreliable. They require your console font to be one that supports it, and in general, are something I would avoid. (All of these techniques break if your user doesn't do extra work on their part... so they are not reliable.)

If you need to write Unicode output, I highly recommend making a GUI application to handle this, instead of using the Console. It's fairly easy to make a simple GUI to just write your output to a control which supports Unicode.


Console.OutputEncoding = Encoding.UTF8;

Try this :

using System.Diagnostics
...
Debug.WriteLine(..);// will output utf-8 charset

Tags:

C#