Home » U++ Library support » U++ Libraries and TheIDE: i18n, Unicode and Internationalization » unicode input in edit ctrls
unicode input in edit ctrls [message #3153] |
Tue, 09 May 2006 13:09  |
ngducviet
Messages: 3 Registered: May 2006
|
Junior Member |
|
|
Hi,
I am using U++ on win32, and having a problem in inputting unicode characters (vietnamese characters) for edit ctrls, it could not display them correctly. Does someone know how to solve this ?
Thanks in advance,
Viet
|
|
|
|
|
Re: unicode input in edit ctrls [message #3195 is a reply to message #3184] |
Thu, 11 May 2006 21:59   |
 |
mirek
Messages: 14255 Registered: November 2005
|
Ultimate Member |
|
|
ngducviet wrote on Wed, 10 May 2006 05:01 | Hi,
My problem:
I am using a unicode-enable keyboard driver for typing vietnamese words in edit ctrl, it is OK when typing them in MFC's edit ctrl, but in U++ it is different, suppose I have vietnamese words: "nguyễn đức việt", all I got from U++'s edit ctrl is "nguyÔn ®øc viÖt" that is not the expected one.
Viet
|
Well, this is a little bit hard to resolve without having your Win version...
Basically, U++ accepts UNICODE that comes from Win32, and uses Win32 UNICODE output on the screen. It is really weird what went wrong here...
I have just tried to copy/paste the text above into U++ editfield and everything seems ok (please, try that too). That would point to input...
Hacking U++ is easy. The relevant code for this is in CtrlCore/CtrlKbd.cpp; Ctrl::DispatchKey at line 39. I believe that placing some LOGs there should reveal whether U++ is accepting / routing the right unicodes... (I cannot do that here because I do not have vietnamese kbd 
Mirek
|
|
|
|
|
Goto Forum:
Current Time: Sat Apr 26 19:34:13 CEST 2025
Total time taken to generate the page: 0.01069 seconds
|