//获得字节长度 private int getLengthb(string str) { return System.Text.Encoding.Default.GetByteCount(str); }