Title: Surrogates in WordPad
Type the UTF-32 code for the character instead of the surrogate pair. For example to get a math italic i, type 1D456 and then Alt+x. Lone surrogate codes aren't desirable. RichEdit does allow the high code to come in alone via the WM_CHAR message, since some IMEs can only work with 16 bits at a time. WM_UNICHAR takes the UTF-32 code as well.
 
Murray


From: [EMAIL PROTECTED] on behalf of Laurentiu Iancu
Sent: Sat 1/31/2004 5:47 PM
To: [EMAIL PROTECTED]
Subject: Surrogates in WordPad

Hello,

In Windows 2000 WordPad I can type a high surrogate code, press Alt+X, then
type a low surrogate code, press Alt+X again and obtain the corresponding
character.  This does not seem to work in Windows XP WordPad.  Is there a way
to enable this functionality in XP WordPad?

My guess is that the new RichEdit control might not accept surrogates in order
to prevent isolated surrogates from being entered.  I would appreciate any
qualified comments.

Thank you,
Laurentiu


Reply via email to