S
Søren M. Olesen
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(ase.GetBytes(xmlfragment),
0, xmlfragment.Length)
Dim reader As XmlTextReader = New XmlTextReader(xmlstream)
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(ase.GetBytes(xmlfragment),
0, xmlfragment.Length)
Dim reader As XmlTextReader = New XmlTextReader(xmlstream)
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