I’m trying to run a backup job via a batch script on Windows, however I face the following problems:
Folders which contain Greek characters are skipped unless I use chcp 65001 inside the .bat file
Any errors that are thrown by Duplicati apparently are displayed using the system’s locale (Greek). For some reason however, when using chcp 65001 the error messages are mainly empty strings with some unintelligible characters here and there. Also using --force-locale option to set Duplicati’s locale to English doesn’t work.
If I don’t set the codepage to UTF-8 the error messages are displayed fine, but I need to set it to 65001 in order to feed the backup with folders containing foreign characters.
So the problem is I cannot use chcp 65001 and also be able to read any error messages at the same time. I can only do one of the two, and obviously I have to sacrifice the ability to comprehend error messages (if they are thrown).