摘要: string strTmp = "a1某某某"; int a = System.Text.Encoding.Default.GetBytes(strTmp).Length; 在.net framework 4.5中 一个中文表示两个字节 其它为1个字节,所以a的字节长度为8 在.net5中 一个中文 阅读全文
posted @ 2022-02-28 16:58 奉利民 阅读(128) 评论(0) 推荐(0)