string str = "这是一个sample" UnicodeEncoding uEncode = new UnicodeEncoding();// Create a byte array from the source text passed an argument.byte[] bytProducts = uEncode.GetBytes(str);
UnicodeEncoding uEncode = new UnicodeEncoding(); byte[] bytProducts = uEncode.GetBytes(str);
string str = "这是一个sample"
UnicodeEncoding uEncode = new UnicodeEncoding();// Create a byte array from the source text passed an argument.byte[] bytProducts = uEncode.GetBytes(str);
byte[] bytProducts = uEncode.GetBytes(str);
看过之后,你还用问吗?