Converting strings to unicode
I have to turn strings into Unicode. I thought the best way to do this would be as followed
HTML Code:
For...Next to get the string
For...Next to take each character out of the string
For...Next to display each character in Unicode
The only problem I have is with the separation on each character in the string. I know I have to use a For...Next loop to check each spot in the string. But how would I move on past the first character?
Re: Converting strings to unicode
Something like this, though I am not sure that the encoding is the one you want.
Code:
Dim st As String = "Test"
Dim myEnc As New System.Text.UnicodeEncoding
Dim b() As Byte = New Byte() {}
b = myEnc.GetBytes(st)
Re: Converting strings to unicode
I get the basic idea, the encoding one you used isn't what I was looking for but I think I can turn it into what I need.