I am parsing a file that involves characters such as æ ø å. If we assume I have stored a line of the text file as follows<
The C standard IO library can only read bytes. Your file probably contains multibyte characters, encoded with UTF8 or some other encoding. You'll need a library for interpreting such files.
It is possible that your file contains Latin1 text, in which case characters are bytes. In this case, you cannot use isgraph
unless you have the proper locale set.
Bottom line: find the encoding used in your file. Then read it accordingly. In any case, plain C does not know about encodings.