Sorry for the formatted email in the last message. I think that
happened when I copy/pasted the code. Anyway, things seem to work much
better when I'm using UTF16. So, for example, this works fine:
s = "にほんご"
s = ConvertEncodings(s, Encodings.UTF16)
s = ConvertEncoding(s, GetInternetTextEncoding("ISO-2022-JP"))
s = ConvertEncodings(s, Encodings.UTF16)
And it doesn't take forever to do the conversion either. I should
probably file a bug report because this does seem wrong.
On Wednesday, July 30, 2003, at 08:24 PM, Will Leshner wrote:
Assuming the Japanese survives through email, shouldn't the following
leave me with something that is still recognizable as Japanese:
s = "にほんご"
s = ConvertEncoding(s, GetInternetTextEncoding("ISO-2022-JP"))
s = ConvertEncoding(s, Encodings.UTF8)
I'm ending up with gibberish. Also, for some reason the first
ConvertEncoding is taking a really long time.
---
A searchable archive of this list is available at:
<http://support.realsoftware.com/listarchives/search.php>
Unsubscribe or switch delivery mode:
<http://support.realsoftware.com/listmanager/>
.
|