string str = "字符串";
byte [] b = new byte [str.length];
b=Encoding.Unicode.GetBytes(str);
b.length;
string str = "字符串";
byte [] b = new byte [str.length];
b=Encoding.Unicode.GetBytes(str);
b.length;
转载于:https://www.cnblogs.com/lhc520/archive/2012/04/20/2459648.html