Skip to content
Permalink
Browse files

[processing][SAGA] Avoid unicode errors when parsing description files

Fixes #19062
  • Loading branch information
nyalldawson committed Jun 4, 2018
1 parent ba79644 commit 8307264c3b610b5fd3a4cf331dcbeda5b8ae4d2c
Showing with 1 addition and 1 deletion.
  1. +1 −1 python/plugins/processing/algs/saga/SagaAlgorithm.py
@@ -112,7 +112,7 @@ def flags(self):
return super().flags() | QgsProcessingAlgorithm.FlagNoThreading

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

0 comments on commit 8307264

Please sign in to comment.
You can’t perform that action at this time.