Click here to Skip to main content
15,889,527 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
When I use ReadString to read TXT what contains Chinese characters in the Unicode enviroment, what I get is gibberish. I try to find some solutions, such as setlocale() and Change char to Unicode, but doesn't work. The development platform is vs2010 with windows 8. Any else I miss? Thanks for reply.
Posted
Updated 22-Jul-14 22:15pm
v2

1 solution

Because StdioFile only reads ANSI files.

There are articles for derived classes that handle that:

Read and Write Text Files in Unicode through CStdioFile[^]

CStdioFile-derived class for multibyte and Unicode reading and writing[^]

Hope it helps.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900