>
>Message: 9
>Subject: Re: UTF-8 strings not working with StringShape
>From: "Joseph J. Strout" <[EMAIL PROTECTED]>
>Date: Tue, 14 Feb 2006 16:34:27 -0700
>
>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?

I'll have to try that. Right now, it does show up properly as a UTF-8 designated
string in the .Text property of that StringShape when I create it and look
at it in the debugger; and (another copy of) the same string is also being
used to display in an Editfield. So the StringShape that "has" it is correct,
unless it's somehow being changed at a later point, before it's owning Group2D
is being drawn.

(I hope that's the case, because then I can fix this easily).

> >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.

Ok, good. (so this is pretty strange). I'm going to take another close look
at this in my code and make sure that (somehow) I'm doing this myself,
somehow.

> >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?

I'll look at this in detail tonight and report back with results; thanks
for the quick response!


-- 
David Miller
Senior Software Developer, Digital Color Solutions
ColorVision
_______________________________________________
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>

Reply via email to