Zabalba
New member
- Joined
- Sep 25, 2013
- Messages
- 2
- Programming Experience
- 1-3
I'm having a hard time extracting the ASCII character conversion array from a Stringbuilder class. I can see that the Normalize worked, but when I try to set the variable to the contents of the Stringbuilder I'm returning the original input. I've tried to translate some C# solutions I found to VB.net but to no avail.
VB.NET:
[COLOR=#00008B]Public[/COLOR] [COLOR=#00008B]Sub[/COLOR] ASCIIConverter
[COLOR=#00008B]Dim[/COLOR] TestString [COLOR=#00008B]As[/COLOR] [COLOR=#00008B]String[/COLOR] = [COLOR=#800000]"Caf?"[/COLOR]
[COLOR=#00008B]Dim[/COLOR] ASCIIConverter [COLOR=#00008B]As[/COLOR] [COLOR=#00008B]New[/COLOR] StringBuilder
ASCIIConverter.Clear()
ASCIIConverter.Append(TestString.Normalize(NormalizationForm.FormKD)).ToString()
TestString = ASCIIConverter.ToString
[COLOR=#00008B]End[/COLOR] [COLOR=#00008B]Sub[/COLOR]