Home » Community » Newbie corner » windows console utf-8 output problem (Trying to use codepage 65001 with utf-8 output on windows console)
windows console utf-8 output problem [message #48327] |
Fri, 23 June 2017 04:35  |
lobster
Messages: 2 Registered: June 2017
|
Junior Member |
|
|
Hello.
I am totally new to UPP.
Trying a console app with utf-8 output.
Following piece of code does not work in windows console:
CONSOLE_APP_MAIN
{
CoutUTF8();
Cout() << "èèâü";
}
output is garbage in cmd console.
However, I checked in console properties that code page is indeed 65001 ( utf-8)
As a note no problem in a takecommand console or conemu console.
Any idea ?
Is this related to the following TODO note in Stream.h :
void Put0(int w) {
#ifdef PLATFORM_WIN32
buffer.Cat(w);
if(CheckUtf8(buffer)) { // TODO: Use W api
Thanks.
|
|
|
Goto Forum:
Current Time: Thu May 08 04:56:20 CEST 2025
Total time taken to generate the page: 0.01749 seconds
|