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++ Library support » U++ Core » charset conversion
Re: charset conversion [message #26037 is a reply to message #26034] Fri, 26 March 2010 18:17 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14258
Registered: November 2005
Ultimate Member
U++ and Windows encoding do not need to be the same.

U++ works in utf-8 by default for 8bit chars. Your German windows in Win 1252. You are calling Win32 API for 8-bit chars.

One way around is to use MessageBoxW and covert utf-8 to WString.

Other way around is to use

String ToSystemCharset(const String& src)

which would convert to actual 8-bit encoding.

Best way here is probably to use PromptOK. But above methods are fine if you need to use API directly.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: CParser enhancements
Next Topic: Xmlize hates spaces
Goto Forum:
  


Current Time: Wed May 14 14:32:46 CEST 2025

Total time taken to generate the page: 0.00623 seconds