From 444639b7e3556c36a16f3476ebd0f32645f0d106 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=98=D0=B2=D0=B0=D0=BD=20=D0=94=D0=B7=D1=8E=D0=B1=D0=B5?= =?UTF-8?q?=D0=BD=D0=BA=D0=BE?= Date: Wed, 22 Sep 2021 17:23:05 +0300 Subject: [PATCH] fixed encoding error in case of non ascii characters in user folder path --- pym/calculate/lib/cl_template.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pym/calculate/lib/cl_template.py b/pym/calculate/lib/cl_template.py index 925f7f7..931ec76 100644 --- a/pym/calculate/lib/cl_template.py +++ b/pym/calculate/lib/cl_template.py @@ -3189,7 +3189,7 @@ class templateFunction(_error, _warning, _shareTemplate, _shareTermsFunction, elif terms[2] == 'hexcode': replace = value.__repr__()[2:-1].replace('\\u0','\\x') - replace = replace.decode("UTF-8") + replace = replace.decode("UTF-8") if isinstance(replace, bytes) else replace textTemplateTmp = textTemplateTmp[:resS.start()] + replace + \ textTemplateTmp[resS.end():] return textTemplateTmp