转:
//取字符串长度  
  s   =   "iam张宇湘";  
  
int   len   =   s.Length;//will   output   as   6  
  byte[]   sarr   =   System.Text.Encoding.Default.GetBytes(s);  
  len   
=   sarr.Length;//will   output   as   3+3*2=9



相关文章:

  • 2021-09-24
  • 2021-12-12
  • 2021-12-04
猜你喜欢
  • 2021-08-07
  • 2021-12-04
  • 2022-01-14
  • 2021-12-14
  • 2021-08-29
  • 2022-12-23
相关资源
相似解决方案