Afficher un message
Vieux 23/02/2008, 13h49   #8
Boris
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: wcout, wprintf() only print English

On Sat, 23 Feb 2008 13:11:09 +0200, Ioannis Vranos
<ivranos@nospam.no.spamfreemail.gr> wrote:

> [...]
>>> 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
  Réponse avec citation
 
Page generated in 0,05235 seconds with 9 queries