有什么方法可以在Windows控制台中编写希伯来语吗? [英] Is there any way to write Hebrew in the Windows Console?
问题描述
是否可以在Windows控制台中编写希伯来语?
Is there any way to write Hebrew in the Windows Console?
我尝试了以下操作:
Console.OutputEncoding = new UTF8Encoding(false);
Console.WriteLine("\u05D0\u05D1");
Console.ReadLine();
但它不是אב,而是写了其他一些Unicode字符,不在希伯来语ABC中。
but instead of "אב" it writes some other Unicode character, that're not in the Hebrew ABC.
有什么想法吗?
推荐答案
如果可以致电 chcp
命令,您可以将代码页更改为希伯来语,这样您的字符就可读了。这里有一篇有关国际化和Windows控制台的有趣文章: http://illegalargumentexception.blogspot.com/2009/04/i18n-unicode-at-windows-command-prompt.html
If you can call chcp
command 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
这篇关于有什么方法可以在Windows控制台中编写希伯来语吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!