in reply to Where is my string going in Win32::API ?

The only thing that makes some sense to me is that someone is converting your string to UTF-8 and using the character count as the byte count when converting back to UNICODE/UTF-16.

Removing Win32::GUI from the picture, I don't see your problem (but I also see \x22\x21 as just a block). So I suspect that Win32::GUI is interfering with the processing of the window title. Try setting the title of a window that is not under Win32::GUI control for comparison.

        - tye (but my friends call me "Tye")
  • Comment on (tye)Re: Where is my string going in Win32::API ?

Replies are listed 'Best First'.
Re: (tye)Re: Where is my string going in Win32::API ?
by John M. Dlugosz (Monsignor) on Jul 03, 2001 at 18:30 UTC
    With only 1 char in the non-ASCII range, the length difference between bytes and chars, if UTF8 encoded, is 2. That's not what I'm seeing.

    Try a window not under its control: good idea, but a lot of effort to create a window using Win32::API to call the underlying routines. But I'll try something like that, later.

    —John