Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: bootstrap on June 24, 2012, 09:16:40 am

Title: print unicode characters to console
Post by: bootstrap on June 24, 2012, 09:16:40 am
How can I print UTF8 chinese and other language unicode characters to the console?

Can I specify which terminal is run by codeblocks?  I noticed the default console on 64-bit ubuntu 12.04 is called "gnome-terminal", which it appears I can specify the font.  But that's not the console that appears when my program runs --- that appears to be xterm.  But I don't see any way to specify a font that would display the characters I need to see.

Any suggestions?
Title: Re: print unicode characters to console
Post by: Jenna on June 24, 2012, 09:44:33 am
How can I print UTF8 chinese and other language unicode characters to the console?

Can I specify which terminal is run by codeblocks?  I noticed the default console on 64-bit ubuntu 12.04 is called "gnome-terminal", which it appears I can specify the font.  But that's not the console that appears when my program runs --- that appears to be xterm.  But I don't see any way to specify a font that would display the characters I need to see.

Any suggestions?

Try to use
Code
gnome-terminal --disable-factory --hide-menubar -t $TITLE -x
in "Settings -> Environment -> General settings -> Terminal to launch console programs" .