Author Topic: print unicode characters to console  (Read 6752 times)

Offline bootstrap

  • Multiple posting newcomer
  • *
  • Posts: 64
print unicode characters to console
« 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?

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: print unicode characters to console
« Reply #1 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" .