Peter
2007-07-02 16:24:29 UTC
Hi,
I created a small console app to output some text based on command line
parameters.
Output is multi-lingual, based on input, but only latin text, single byte
characters, no unicode or MBCS.
I noticed that 8bit ASCII characters are not displayed properly, they are
replaced by other characters.
E.g. "é" becomes "8"
I thought for a minute that the most significant bit was cleared but then it
would have been another character than "8" so I'm not sure what the problem
is ?
Is it possible to output such characters in a console app on a Windows
system with latin code page ?
Should I use another command than printf to work around the issue ?
I created a small console app to output some text based on command line
parameters.
Output is multi-lingual, based on input, but only latin text, single byte
characters, no unicode or MBCS.
I noticed that 8bit ASCII characters are not displayed properly, they are
replaced by other characters.
E.g. "é" becomes "8"
I thought for a minute that the most significant bit was cleared but then it
would have been another character than "8" so I'm not sure what the problem
is ?
Is it possible to output such characters in a console app on a Windows
system with latin code page ?
Should I use another command than printf to work around the issue ?