Extended ascii characters reading problem
Posted on 2009-12-18
I have a program that read an unicode file and all ascii and unicode characters are well reading with fread and stored in memory in a variable wchar_t* file_buffer then I do a parsing and store datas in a struct.
The problem begin when I puted extended ascii characters in the unicode file, then the contain of file_buffer was fill till the ascii characters is read. It seems like an EOF ?
So the problem seems to come from fread function...
normally extended ascii are stored in unsigned char, and wchar_t are
normally unsigned basically isn't it ?
Can you check the code and capture with and without extended ascii?