You've all had the following mistake:
UnicodeDecodeError: 'machine' codec can't decode character 'trucmuche' in position x: ordinal not in range(z)
And then, to get out of it, you suffered a lot.
You've all had the following mistake:
UnicodeDecodeError: 'machine' codec can't decode character 'trucmuche' in position x: ordinal not in range(z)
And then, to get out of it, you suffered a lot.
| #! /usr/bin/env python3 | |
| sizeLimit = 500*1024 # bytes | |
| import subprocess | |
| import sys | |
| def execute(shellCmd): | |
| return subprocess.check_output(shellCmd, shell=True, encoding='utf8') |