Is there any way to write Hebrew in the Windows Console?
I tried the following:
Console.OutputEncoding = new UTF8Encoding(false);
Console.WriteLine("\u05D0\u05D1");
Console.ReadLine();
but instead of “אב” it writes some other Unicode character, that’re not in the Hebrew ABC.
Any ideas why?
If you can call
chcpcommand before your program, you can change the codepage to Hebrew and then your characters will be readable. There is an interesting article about internationalization and windows console here: http://illegalargumentexception.blogspot.com/2009/04/i18n-unicode-at-windows-command-prompt.html