Fem: Force utf8 encoding for Netgen Python process

This commit is contained in:
marioalexis
2025-09-11 18:27:21 -03:00
parent 7d1e05f21d
commit 7387fc2210

View File

@@ -124,7 +124,7 @@ class NetgenTools:
def compute(self):
env = QProcessEnvironment.systemEnvironment()
self.process.setProcessEnvironment(env)
self.process.start(self._get_python_exe(), ["-E", self.script_file])
self.process.start(self._get_python_exe(), ["-X", "utf8", "-E", self.script_file])
return self.process
@@ -422,7 +422,7 @@ except:
pass
"""
p = QProcess()
p.start(NetgenTools._get_python_exe(), ["-c", script])
p.start(NetgenTools._get_python_exe(), ["-E", "-c", script])
p.waitForFinished()
info = p.readAll().data().decode()