diff --git a/pyaedt/desktop.py b/pyaedt/desktop.py index 9e8891f0839..50949b43e6f 100644 --- a/pyaedt/desktop.py +++ b/pyaedt/desktop.py @@ -440,7 +440,7 @@ def _get_tasks_list_windows(self, student_version): p = subprocess.Popen('tasklist /FI "IMAGENAME eq {}" /v'.format(process), stdout=subprocess.PIPE) result = p.communicate() - output = result[0].decode(encoding=sys.stdout.encoding, errors='ignore').split(os.linesep) + output = result[0].decode(encoding="utf-8", errors='ignore').split(os.linesep) pattern = r"(?i)^(?:{})\s+?(\d+)\s+.+[\s|\\](?:{})\s+".format(process, username) for l in output: