Home » Community » U++ community news and announcements » UTF8 support in Win32 console (Cout & ide)
UTF8 support in Win32 console (Cout & ide) [message #43694] |
Mon, 22 September 2014 14:43 |
![](https://www.ultimatepp.org/forums/images/custom_avatars/3.png) |
mirek
Messages: 14000 Registered: November 2005
|
Ultimate Member |
|
|
There is a bit of mess with console encoding in Win32. After some considerations, I have decided to
- normally, Cout converts to default console encoding ("OEM charset")
- Ide, when capturing the output of program (e.g. to display in Console or into file), it expects it to be in this "OEM charset"
but
- new function, "CoutUTF8();" activates utf8 in Win32 console output and supresses conversion (so that U++ normal utf8 goes directly to console)
- in ide, Debug/Run options.. there is a new option "Output is UTF-8", which does the some for output capture
|
|
|
Goto Forum:
Current Time: Sat Jul 27 15:27:37 CEST 2024
Total time taken to generate the page: 0.01839 seconds
|