Skip to content

Commit 8307264

Browse files
committedJun 4, 2018
[processing][SAGA] Avoid unicode errors when parsing description files
Fixes #19062
1 parent ba79644 commit 8307264

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎python/plugins/processing/algs/saga/SagaAlgorithm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ def flags(self):
112112
return super().flags() | QgsProcessingAlgorithm.FlagNoThreading
113113

114114
def defineCharacteristicsFromFile(self):
115-
with open(self.description_file) as lines:
115+
with open(self.description_file, encoding="utf-8") as lines:
116116
line = lines.readline().strip('\n').strip()
117117
self._name = line
118118
if '|' in self._name:

0 commit comments

Comments
 (0)
Please sign in to comment.