Hi,
I made a program that inputs a text file and analyses it (line by line with fgets in a loop, main string functions used are strlen, strtok, strchar, strcpy, strcmp). When the input file is encoded in Unicode, it crashes at some point while reading the file. Interestengly, it doesn't crash if the input file is in UTF-8 encoding.
How can I check if the file encoding is ANSI as expected ?
Best wishes,
Desomond