Kevin Goodsell wrote:
Michael wrote:
Then how to output a Unicode character using Standard C++ (Pure C++).
Standard C++ does not require that an implementation support, or know
anything about Unicode.
The (sort of) portable answer, then, is to determine the values of the
bytes making up the character you want to output, then write those bytes
to your output stream.
In other words, write your own wide_char read/writers. You will
probably have to open your stream in binary mode and read/write byte by
byte. Some of those bytes may be standard characters, others my be
encoded Unicode wide chars.
You will want to research how the target system represents unicode in
text streams. In unix this is UTF-8 encoding, others may be same or
different.
Have fun,
NR