摘要: public static int GetStrRealLen(string s) { byte[] sarr = System.Text.Encoding.Default.GetBytes(s); int len = sarr.Length; return len; } 阅读全文