J
JJMM
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.Default.GetBytes(strText1)
Dim strText2 as string =
Encoding.GetEncoding(intEncodingPage).GetString(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.Default.GetBytes(strText1)
Dim strText2 as string =
Encoding.GetEncoding(intEncodingPage).GetString(bytAux)
Is there anyway to convert directly without converting to byte first?
Thanks,
jaime