0
4

1 回答 1

2

It sounds like you want one of the following:

Encoding.Unicode.GetBytes(myString);
Encoding.Unicode.GetChars(myString);

To format a char or a byte as a unicode character (e.g. "\uFF66" or "\x0002") see the following question:

Converting Unicode strings to escaped ascii string

于 2011-04-14T01:28:51.023 回答