Is simply like a default is ANSI code, after reading the file made reading in Chinese into the code, specific content I wrote a blog before, think bosses, please help to solve this problem confused me for a long time
CodePudding user response:
You read fread is binary, in when opening the file will be "r" to "rb" and "w" to "wb" give it a tryCodePudding user response:
I've tried, is still the sameCodePudding user response:
Char to would beCodePudding user response:
TXT a two byte header tags is unicode.
The ANSI/utf8 didn't,
CodePudding user response: