vb.net
Dim sTest As String = "1A二b三S"
Dim bByte() As Byte = System.Text.Encoding.Default.GetBytes(sTest)
MessageBox.Show(bByte.Length)
C#.net
String sTest = "1A二b三S" Byte() bByte = System.Text.Encoding.Default.GetBytes(sTest) MessageBox.Show(bByte.Length)
原文链接:https://www.f2er.com/vb/260170.html