News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

print unicode characters to console

Started by bootstrap, June 24, 2012, 09:16:40 AM

Previous topic - Next topic

bootstrap

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?

Jenna

Quote from: 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?

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