I am using Visual Studio 2010 and I want to print Unicode characters in it console mode (Bengali Unicode Characters).
I am compressing database content in console, and I need to print it in console to test my exact compressed/decompressed data. But the output is three garbage characters:
Here's the code. I also tried (Console.OutputEncoding = Encoding.UTF8
).
using System;
using System.Text;
namespace Unicode_Printing_in_console
{
class Program
{
static void Main(string[] args)
{
char ch = 'আ';// hex value=0985
Console.WriteLine(ch);
}
}
}
Here is the output of this program: