I mean how to use _tprintf().
How to output a Unicode character?
Collapse
This topic is closed.
X
X
-
MichaelTags: None -
WW
Re: How to output a Unicode character?
Michael wrote:[color=blue]
> I mean how to use _tprintf().[/color]
The way the manufacturer of _tprintf() tells you. Standard C++ has no
_tprintf().
--
WW aka Attila
-
Michael
Re: How to output a Unicode character?
Then how to output a Unicode character using Standard C++ (Pure C++).
Comment
-
WW
Re: How to output a Unicode character?
Michael wrote:[color=blue]
> Then how to output a Unicode character using Standard C++ (Pure C++).[/color]
I have no idea. But do not despair! If you get no useful answer here, post
the question to comp.lang.c++.m oderated. There are guys there who work
heavily with UNICODE.
--
WW aka Attila
Comment
-
Kevin Goodsell
Re: How to output a Unicode character?
Michael wrote:
[color=blue]
> Then how to output a Unicode character using Standard C++ (Pure C++).
>
>[/color]
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.
-Kevin
--
My email address is valid, but changes periodically.
To contact me please use the address from a recent posting.
Comment
-
Noah Roberts
Re: How to output a Unicode character?
Kevin Goodsell wrote:[color=blue]
> Michael wrote:
>[color=green]
>> Then how to output a Unicode character using Standard C++ (Pure C++).
>>
>>[/color]
>
> 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.[/color]
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
Comment
Comment