【VB.Net】字节数与字符数的取得

1,取得字符数
Len(aStr)
2,取得字节数
System.Text.Encoding.GetEncoding("Shift_JIS").GetByteCount(aStr)


原文地址:https://www.cnblogs.com/sekihin/p/770734.html
Creative Commons License 本作品采用 知识共享署名-非商业性使用 2.5 中国大陆许可协议进行许可。