如何取字符串的字节数
int len = System.Text.Encoding.Default.GetBytes(strTest).Length;
和 strTest.Length 不同,后者返回的是字符数.
int len = System.Text.Encoding.Default.GetBytes(strTest).Length;
和 strTest.Length 不同,后者返回的是字符数.
The URI to TrackBack this entry is: http://recordsome.blogsome.com/2006/05/20/p51/trackback/
No comments yet.
RSS feed for comments on this post.
Line and paragraph breaks automatic, e-mail address never displayed, HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>
Get free blog up and running in minutes with Blogsome
Theme designed by Hadley Wickham