c++ - Reading and displaying UTF-8 encoded Chinese characters -


i trying read chinese characters utf-8 encoded text file , storing them in variables. when try print them in console, shows question marks in place of characters.

    while(!fin.eof())     {         fin.get(c);         appendcharactertoword(currentword, c);     }  

(i working in windows , code in c++)


Comments

Popular posts from this blog

OpenCV OpenCL: Convert Mat to Bitmap in JNI Layer for Android -

android - org.xmlpull.v1.XmlPullParserException: expected: START_TAG {http://schemas.xmlsoap.org/soap/envelope/}Envelope -

python - How to remove the Xframe Options header in django? -