User forums > Using Code::Blocks

print unicode characters to console

(1/1)

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?


--- End quote ---
Try to use

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

Navigation

[0] Message Index

Go to full version