Pectojin / duplicati-client

A command line client for controlling the Duplicati Server
GNU Lesser General Public License v2.1
75 stars 20 forks source link

Fix for UTF-8-issue in Docker Containers (auth.py) #23

Closed Programmierfreund closed 3 years ago

Programmierfreund commented 3 years ago

Like described in issue #21 (https://github.com/Pectojin/duplicati-client/issues/21) there is an UTF-8-issue when you are calling r.json inside a docker cointainer.

I found a valid solution based on this article: https://www.howtosolutions.net/2019/04/python-fixing-unexpected-utf-8-bom-error-when-loading-json-data/ - easiest way ist described in step 4.

TheAmitMa commented asked to share my solution - here it is.

avmaksimov commented 3 years ago

It works on old and new (canary) version of D2. Thank you!