Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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 Go to next message
o_wild is currently offline  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.
  • Attachment: MyNotepad.zip
    (Size: 121.08KB, Downloaded 242 times)
Re: Problems about Chinese characters [message #19513 is a reply to message #19512] Wed, 10 December 2008 08:07 Go to previous message
cbpporter is currently offline  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.
Previous Topic: IDE rename bug with collapsed separators
Next Topic: LayDes bug
Goto Forum:
  


Current Time: Thu Mar 28 18:43:56 CET 2024

Total time taken to generate the page: 0.01374 seconds