On Apr 27, 2007, at 19:40 UTC, Drew F. wrote:

> Found what makes it happen. It seems if the string is a utf16 string 
> the strangeness occurs.
> ...
> Can anyone else confirm this. It does not occur on Win32.

I can confirm it.  And it gets even weirder: if you omit the last two
parameters of DrawString, so you give it just the string and the
position at which to draw, then instead of "ImageName #1" (or whatever)
it draws "laeae#" followed by a Chinese character!

You can reproduce this with only three lines, in Window.Paint:

  Dim s As String
  s = ConvertEncoding( "ImageName #1", Encodings.UTF16 )
  g.DrawString s, 10, 10
  
It would appear that DrawString for UTF-16 is simply broken.  Odd that
such strings display fine in other contexts, though.

And no, I've never seen this before -- but then, I rarely use UTF-16. 
Let us know the feedback ID, and I'll certainly sign on.

Best,
- Joe

--
Joe Strout -- [EMAIL PROTECTED]


_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to