\uxxxx to wostream

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Using gcc (Ubuntu 4.4.1-4ubuntu9) 4.4.1  if I do something like:

std::cout << "\u2714" << std::endl;

to my terminal which is set up to use UTF-8, I see a checkmark.

If I do something like:

std::wcout << "\u2714" << std::endl;

I get nothing.

If I do:

std::wcout << L"\u2714" << std::endl;

I get a box with 0 0 on the top and 1 4 on the bottom.

Using L"\U00002714" has the same result.

std::wcout << L"Pat" << std::endl;

gets the word Pat on the screen.

How can I insert something into wcout that will result in a check mark?

Patrick


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux