Hi
How do I create an array of bytes from a string containig UTF8 ??
Dim xmlfragment as string="<Node Name='Søren' />" 'My name ... Søren
Dim ase As ASCIIEncoding = New ASCIIEncoding
Dim xmlstream As MemoryStream = New MemoryStream(as e.GetBytes(xmlf ragment),
0, xmlfragment.Len gth)
Dim reader As XmlTextReader = New XmlTextReader(x mlstream)
While Reader.reas
....
End While
However it seem like the ASCIIEncoding class converts everything to
7-bit....how do I maintain it in 8-bit??
TIA
Søren
How do I create an array of bytes from a string containig UTF8 ??
Dim xmlfragment as string="<Node Name='Søren' />" 'My name ... Søren
Dim ase As ASCIIEncoding = New ASCIIEncoding
Dim xmlstream As MemoryStream = New MemoryStream(as e.GetBytes(xmlf ragment),
0, xmlfragment.Len gth)
Dim reader As XmlTextReader = New XmlTextReader(x mlstream)
While Reader.reas
....
End While
However it seem like the ASCIIEncoding class converts everything to
7-bit....how do I maintain it in 8-bit??
TIA
Søren
Comment