问题
I have a string "Some string that I am using but Poacher\u2019s shows unicode!" I'm trying to have the Unicode convert into the ' character.
回答1:
Something like that should work :
Encoding.UTF8.GetString(Encoding.Convert(Encoding.Unicode, Encoding.UTF8, Encoding.Unicode.GetBytes("Some string that I am using but Poacher\u2019s shows unicode!")));
Please see the Encoding class on MSDN.
来源:https://stackoverflow.com/questions/36611182/converting-unicode-to-actual-character-c-sharp