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 » 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 Go to next message
lobster is currently offline  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.



Re: windows console utf-8 output problem [message #48329 is a reply to message #48327] Fri, 23 June 2017 14:07 Go to previous message
lobster is currently offline  lobster
Messages: 2
Registered: June 2017
Junior Member
Ok found the problem.
My mistake.
It has nothing to do with upp.
I forgot to set a font which has extended character set like Lucida Console.
When done everything is fine.
Sorry about the useless post

Paul.
Previous Topic: Non-modal - Dialog will not stay open
Next Topic: cc1plus crash
Goto Forum:
  


Current Time: Thu Mar 28 22:37:45 CET 2024

Total time taken to generate the page: 0.00894 seconds