mercredi 1 juillet 2015

Reading and displaying UTF-8 encoded Chinese characters

I am trying to read Chinese characters from a UTF-8 encoded text file and storing them in variables. When I try to print them in console, it shows question marks in place of the characters.

    while(!fin.eof())
    {
        fin.get(c);
        appendCharacterToWord(currentWord, c);
    } 

(I am working in Windows and the code is in C++)

Aucun commentaire:

Enregistrer un commentaire