ASP.NET中检测含有中文字符串的实际长度
摘要:以下就是在ASP.NET中检测含有中文字符串的实际长度,这个可能在很多地方都用的上. VB.NET的写法: Function StrLength(Byval Str As String) As Integer Dim En As ASCIIEncoding=New ASCIIEncoding () Dim B As Byte()=En.G...
阅读全文
posted @ 2004-05-24 16:55
浙公网安备 33010602011771号