string str="中国"; str.Length的结果是2(字符长度) Encoding.Default.GetBytes(str).Length的结果是4(字节长度) Encoding类所属命名空间是:System.Text