[CentOS] Unicode in C++

Wed Feb 23 15:32:23 UTC 2011
Scott Robbins <scottro at nyc.rr.com>

On Wed, Feb 23, 2011 at 02:44:11PM +0000, Michael D. Berger wrote:
> On Tue, 22 Feb 2011 19:51:38 -0500, Nico Kadel-Garcia wrote:
> 
> > On Tue, Feb 22, 2011 at 5:37 PM, Michael D. Berger
> > <m_d_berger_1900 at yahoo.com> wrote:
> >> On my CentOS box, in C++ programs, is there a way to print Unicode
> >> characters?
> >>
> > And what sort of monitor or client are you using?
> > Xterm, Putty, NX, SSH,
> 
> Xterm.

Make sure to use uxterm, not xterm.  (Should be included with any
installation of xterm.)

> 
> > And what do you mean by "print"? Do you mean send to a printer, or get
> > them to display correctly on your screen?
> 
>    cout << <Unicode characters> << endl;
> 
> and they will appear on my screen, or:
> 
>    ofstream  os("myfile");
>    os << <Unicode characters> << endl;
> 
> And they will appear in myfile which may them be printed or
> edited with vi.

Depending upon the characters, you may not be able to get them in a
console, but as long as you're using X, they should appear in an xterm.  


-- 
Scott Robbins
PGP keyID EB3467D6
( 1B48 077D 66F6 9DB0 FDC2 A409 FA54 EB34 67D6 )
gpg --keyserver pgp.mit.edu --recv-keys EB3467D6