I\'m writing a small application in C that reads a simple text file and then outputs the lines one by one. The problem is that the text file contains special characters like
I don't know if it could help but if you're sure that the encodings of terminal and input file are the same, you can try to setlocale():
setlocale()
#include … setlocale(LC_CTYPE, "");