Hi,
I have a string and I one to convert it to a different encoding, right now I
first convert it to binary and then convert the binary to a string with the
new encoding. That is:
' strText1: Original text
' strText2: text with new enconding (the enconding page number is
intEncodingPage )
Dim bytAux() As Byte = Encoding.Defaul t.GetBytes(strT ext1)
Dim strText2 as string =
Encoding.GetEnc oding(intEncodi ngPage).GetStri ng(bytAux)
Is there anyway to convert directly without converting to byte first?
Thanks,
jaime
I have a string and I one to convert it to a different encoding, right now I
first convert it to binary and then convert the binary to a string with the
new encoding. That is:
' strText1: Original text
' strText2: text with new enconding (the enconding page number is
intEncodingPage )
Dim bytAux() As Byte = Encoding.Defaul t.GetBytes(strT ext1)
Dim strText2 as string =
Encoding.GetEnc oding(intEncodi ngPage).GetStri ng(bytAux)
Is there anyway to convert directly without converting to byte first?
Thanks,
jaime
Comment