At 8:24 PM -0700 7/30/03, Will Leshner wrote:
Assuming the Japanese survives through email, shouldn't the
following leave me with something that is still recognizable as
Japanese:
s = "Ç?Ç?ÇÒǾ"
Hey cool, it did survive (in my email client, at least). Even
cooler, you also happened to pick one of the words I remember from my
Japanese studies in college. :)
s = ConvertEncoding(s, GetInternetTextEncoding("ISO-2022-JP"))
s = ConvertEncoding(s, Encodings.UTF8)
Yes, I would expect that to work, provided that these conversions are
defined (whether or not that is true depends on the OS). In fact I
would expect you to end up with exactly the same string you started
with.
I'm ending up with gibberish.
Well, the obvious question is, what gibberish? What are the bytes of
the string, and the encoding of the string, after each step?
Best,
- Joe
--
,------------------------------------------------------------------.
| Joseph J. Strout REAL Software, Inc. |
| joe at realsoftware dot com http://www.realsoftware.com |
`------------------------------------------------------------------'
---
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/>
.
|