Unicode-to-string conversion in C#

前端 未结 7 935
你的背包
你的背包 2020-12-20 17:22

How can I convert a Unicode value to its equivalent string?

For example, I have \"రమెశ్\", and I need a function that accepts this Unicode value and returns a string

7条回答
  •  天涯浪人
    2020-12-20 18:07

    UTF8Encoding Class

       UTF8Encoding uni = new UTF8Encoding();
       Console.WriteLine( uni.GetString(new byte[] { 1, 2 }));
    

提交回复
热议问题