On Sat, 23 Feb 2008 13:11:09 +0200, Ioannis Vranos
<iv*****@nospam .no.spamfreemai l.grwrote:
[...]
>>Also the code
[...]displays the Greek text when I enter it, but outputs nothing. With
English text, the text is displayed both when entered and outputed.
I don't remember anymore the details but the problem has something to do
with codecvt: Your wide characters are automatically converted to narrow
characters by wcout. This is something you might not want (and even if you
want it the conversion might not work automatically the way you expect :).
Try writing to wstringstream and converting to UTF-8 explicitly (storing
the result eg. in string). If your console supports UTF-8 you can print to
cout (otherwise print to a file so you can test the output in an editor).
HTH,
Boris