diff options
author | Vilém Duha <vilda.novak@gmail.com> | 2021-01-18 16:16:58 +0300 |
---|---|---|
committer | Vilém Duha <vilda.novak@gmail.com> | 2021-01-18 16:16:58 +0300 |
commit | af50ac234088b0d7eeab54cd498c0318a1f95c76 (patch) | |
tree | 67ca7af94560f36f2a3a5a0d35e82ce5b4a07e6f /blenderkit/upload_bg.py | |
parent | d59052f4d5ed74fdb49ddd4529215560af041715 (diff) |
BlenderKit: fix T84766 - Specify utf-8 encoding for all json file write/reads
This is used on various places of the addon, and was introduced to fix (once more and better) T48766.
Diffstat (limited to 'blenderkit/upload_bg.py')
-rw-r--r-- | blenderkit/upload_bg.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/blenderkit/upload_bg.py b/blenderkit/upload_bg.py index 2e27dbf1..685e280a 100644 --- a/blenderkit/upload_bg.py +++ b/blenderkit/upload_bg.py @@ -126,7 +126,7 @@ def upload_files(upload_data, files): if __name__ == "__main__": try: # bg_blender.progress('preparing scene - append data') - with open(BLENDERKIT_EXPORT_DATA, 'r') as s: + with open(BLENDERKIT_EXPORT_DATA, 'r',encoding='utf-8') as s: data = json.load(s) bpy.app.debug_value = data.get('debug_value', 0) |