Skip to content

Commit

Permalink
Set the encoding 'utf-8'. (#624)
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxJPRey authored Dec 3, 2021
1 parent 0cd9a46 commit 7147483
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyaedt/desktop.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 7147483

Please sign in to comment.