realbasic-nug
[Top] [All Lists]

Re: converting to/from Japanese

To: REALbasic Network Users Group <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: converting to/from Japanese
From: "Joseph J. Strout" <joe at realsoftware dot com>
Date: Wed, 30 Jul 2003 20:44:56 -0700
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/>
.


<Prev in Thread] Current Thread [Next in Thread>