参考
Dim str As String = "中华人民abc共和国" Dim len As Integer = Encoding.default.getbytes(str).lengthmsgbox(len)