which is weird, because we should read the files with encoding='UTF-8' I think.
This may be happening because the locale is not set and the default charset is used, see this:
charset 'C' (canonical name: ANSI_X3.4-1968) will be used.
So one solution would be to explicitly set the encoding for when a file is read.
This is just speculation though. BTW, this has happened only on server installations which are more prone to having weird language configurations: contrast values of LANG, on desktop it's for example "en_US.UTF-8", while on server it just has "en_US".
I notice
encoding= 'ANSI_X3. 4-1968'
which is weird, because we should read the files with encoding='UTF-8' I think.
This may be happening because the locale is not set and the default charset is used, see this:
charset 'C' (canonical name: ANSI_X3.4-1968) will be used.
So one solution would be to explicitly set the encoding for when a file is read.
This is just speculation though. BTW, this has happened only on server installations which are more prone to having weird language configurations: contrast values of LANG, on desktop it's for example "en_US.UTF-8", while on server it just has "en_US".
I'll keep looking into this.