• Ahh, I see. This is a tricky one actually.

    In a way, nothing is actually wrong. What's happened is the command-line tools are writing the file to disk in UTF8 format. If you were also to load the files in UTF8 format and then send character by character everything would be fine.

    I believe you could use the iconv command-line tool on Linux to convert the formats for you before your C code reads it.

    Maybe the tools should write the file in the raw ISO8859-1 format, however they are expected to read files in UTF8 so the current behaviour of writing as UTF8 seems kind of reasonable.


Avatar for Gordon @Gordon started