At 6:23 PM -0500 2/14/06, David Miller wrote:
But when the Group2D is actually -drawn-, I'm getting "???" (without the
quotes), not Simplified Chinese character symbols. Other characters in the
same Unicode UTF-8 string which are in the ASCII range -are- drawn correctly.
That's odd. What happens if you call DrawString with the same text?
Or stuff it into a StaticText?
This appears to be a deliberate substitution happening inside RB (non-ASCII
characters being replaced by ???, no matter how many of them exist); can
someone please confirm this?
I can confirm that that is NOT it. There is no such deliberate
substitution within RB's code base.
If it's a "feature", does that mean there is no way to use a StringShape to
display "above-ASCII" characters in Unicode in other languages?
Certainly not; I display non-ASCII characters in StringShapes all the
time. Just to be sure, I just tried it again, with this code in the
Window.Paint event of a new project:
Dim s As New StringShape
s.Text = "???"
g.DrawObject s, 100, 100
except that in place of ???, I had the Japanese kanji for "nihongo",
which I typed directly via the Kotoeri input method. When I ran, it
appeared just fine.
Interesting, though, that when I pasted this text into Eudora, the
kanji turned into question marks. But my gut is telling me that
that's a coincedence and a red herring.
So, anyway, if you do a simple test like this, does it work for you?
What if you use your Chinese text in place of the Japanese ones? Is
it only certain characters that don't draw? Or is it that you're
somehow using the StringShape differently than this?
The same string of Simplified Chinese characters does display properly when
set into an EditText field in my main UI; this appears to be an issue ONLY
when using a Unicode-encoded string inside of a StringShape (and when the
characters in the string are above ASCII 127).
No, there's clearly more to it than that.
Best,
- Joe
--
Joseph J. Strout
[EMAIL PROTECTED]
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>