增加判断文字长度,汉字算2个

发表于:2007-06-30来源:作者:点击数: 标签:
strName= Regex.Replace(strName,"[u4e00-uf900]","aa");
int Length=strName.Length;

原文转自:http://www.ltesting.net