用C#写希伯来语

时间:2018-02-22 07:15:12

标签: c#

我正在尝试使用C#visual 2015 .NET Framework 4.5.2以希伯来语编写

我试过了:

        string str = "עברית";

        Encoding hebrewEncoding = Encoding.GetEncoding("Windows-1255");

        byte[] bytes = hebrewEncoding.GetBytes(str);

        string hebrewString = hebrewEncoding.GetString(bytes);

        Console.WriteLine(hebrewString);

但输出是:?????

0 个答案:

没有答案