Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

WM_IME_CHAR == '?'

7 views
Skip to first unread message

David Herman

unread,
Apr 9, 2002, 5:42:09 PM4/9/02
to
Hey all!

I remember figuring this out a while ago, but I forgot since then...
under what conditions does WM_IME_CHAR return ascii question marks and not
the actual Unicode character. Does it have to do with _UNICODE not being
defined in the application?

And, which system is deciding to send the question mark? Is it the IME
itself, or some layer between my app and the IME?


Michael (michka) Kaplan

unread,
Apr 9, 2002, 5:46:19 PM4/9/02
to
It should never return ?.

Sounds like maybe you are expecting to see chars in the IDE even if they are
MBCS off the current default code page?


--
MichKa

Michael Kaplan
Trigeminal Software, Inc. -- http://www.trigeminal.com/

International VB? -- http://www.i18nWithVB.com/
C++? MSLU -- http://msdn.microsoft.com/msdnmag/issues/01/10/


"David Herman" <dhe...@soe.sony.com> wrote in message
news:O8q838A4BHA.2684@tkmsftngp07...

Keith Patella

unread,
Apr 12, 2002, 7:43:43 AM4/12/02
to
My program is MBCS and I will see "???" characters if I try to do a
Unicode->Multibyte conversion from a Double-Byte string(Japanesse) to an
English code page. But I have never seen WM_IME_CHAR return this.

Keith

"Michael (michka) Kaplan" <forme...@nospam.trigeminal.spamless.com> wrote
in message news:OPnuM$A4BHA.1364@tkmsftngp05...

Michael (michka) Kaplan

unread,
Apr 12, 2002, 1:06:04 PM4/12/02
to
I guess I am confused, then. I do not know of any circumstances that a
Unicode character will be returned as a question mark.


--
MichKa

Michael Kaplan
Trigeminal Software, Inc. -- http://www.trigeminal.com/


"Keith Patella" <ke...@stainlesssteelstudios.com> wrote in message
news:O4iO$ch4BHA.1812@tkmsftngp02...

Keith Patella

unread,
Apr 12, 2002, 3:52:08 PM4/12/02
to
If you take a Japaneese Unicode string and do a WideCharToMultiByte function
call on an English locale you will get "????" back

"Michael (michka) Kaplan" <forme...@nospam.trigeminal.spamless.com> wrote

in message news:#cctURk4BHA.1920@tkmsftngp05...

Michael (michka) Kaplan

unread,
Apr 12, 2002, 4:05:55 PM4/12/02
to
Do you mean a code page like 1252? Yes, this is by design (and not a bug at
all).


--
MichKa

Michael Kaplan
Trigeminal Software, Inc. -- http://www.trigeminal.com/


"Keith Patella" <ke...@stainlesssteelstudios.com> wrote in message

news:uqrB6tl4BHA.1924@tkmsftngp05...

David Herman

unread,
Apr 18, 2002, 2:22:01 PM4/18/02
to
> Do you mean a code page like 1252? Yes, this is by design (and not a bug
at
> all).

I actually get the ASCII value for a question mark out of the IME through
WM_IME_CHAR.

For now, I'm avoiding the problem by getting my character from
ImmGetCompositionStringW.

Thanks, all!
Dherman


Michael (michka) Kaplan

unread,
Apr 18, 2002, 2:35:11 PM4/18/02
to
I cannot repro the problem you describe -- and have just recently had
time/cause to be buried in these messages, for MSLU stuff. I never get a
question mark. Are you trying to convert something and failing?


--
MichKa

Michael Kaplan
Trigeminal Software, Inc. -- http://www.trigeminal.com/


"David Herman" <dhe...@soe.sony.com> wrote in message

news:u2XfrXw5BHA.1628@tkmsftngp02...

David Herman

unread,
Apr 18, 2002, 4:25:24 PM4/18/02
to
> I cannot repro the problem you describe -- and have just recently had
> time/cause to be buried in these messages, for MSLU stuff. I never get a
> question mark. Are you trying to convert something and failing?

Hey MichKa!

I basically didn't set up too much. I am working on code that is 3 or 4
years old and was not designed with localization in mind. The first change I
made was to add a WM_IME_CHAR section to our application's WndProc, and I
breakpointed the code. (I don't know if this matters, but I was not able to
define either UNICODE or _UNICODE because this broke things terribly)

Then, I ran the application in a window, pressed Alt-Shift to manually
bring up different IMEs and started typing away. When Windows had closed off
the composition window, my breakpoint got called with the ASCII question
mark (wParam is 63).

So, your guess is as good as mine =) I'm sure there's some setting
somewhere that's off.

Dherman

Michael (michka) Kaplan

unread,
Apr 18, 2002, 4:38:48 PM4/18/02
to
Sounds like you are running on Win2000 or XP and are developing a
non-Unicode app?

This is by design and you should start handling the
WM_INPUTLANGCHANGEREQUEST message to refuse changes to these other input
locales.

And you should think about making a Unicode product, in the future... :-)


--
MichKa

Michael Kaplan
Trigeminal Software, Inc. -- http://www.trigeminal.com/


"David Herman" <dhe...@soe.sony.com> wrote in message

news:evFRocx5BHA.2264@tkmsftngp07...

0 new messages