Home » U++ TheIDE » U++ TheIDE: Other Features Wishlist and/or Bugs » Problems about Chinese characters
Problems about Chinese characters [message #19512] |
Wed, 10 December 2008 04:34 |
o_wild
Messages: 28 Registered: December 2008 Location: Urmqi
|
Promising Member |
|
|
There are two problems about Chinese.
1,I can't directly enter Chinese characters in editor untill I switch encoding method to UTF8.
2,Even if I enter Chinese characters the way above, the excutable created can't show them properly on GUI no matter which build method(MSC9 or MINGW) I choose.
I upload the files that can demonstrate this.
|
|
|
Re: Problems about Chinese characters [message #19513 is a reply to message #19512] |
Wed, 10 December 2008 08:07 |
cbpporter
Messages: 1401 Registered: September 2007
|
Ultimate Contributor |
|
|
o_wild wrote on Wed, 10 December 2008 05:34 | There are two problems about Chinese.
1,I can't directly enter Chinese characters in editor untill I switch encoding method to UTF8.
2,Even if I enter Chinese characters the way above, the excutable created can't show them properly on GUI no matter which build method(MSC9 or MINGW) I choose.
I upload the files that can demonstrate this.
|
1. You can't enter Utf8 characters in a file which does not have Utf8 encoding. But after changing to Utf8, you should have no problems with our editor or any other editor that also support Utf8.
2. The problem is the DrawText call in WM_PAINT. It only supports legacy 8 bit encodings, not Utf8. You can use DrawTextW, which support Utf16, so you must convert you Utf8 string to Utf16.
PS: This is not WinAPI forum. You may find that on a specific WinAPI forum you may get better support for such questions.
|
|
|
Goto Forum:
Current Time: Wed May 08 05:35:22 CEST 2024
Total time taken to generate the page: 0.02308 seconds
|