b'"description": "Leistungsstarke IDE, kostenlos f\x81r Studenten, Open-Source-Mitwirkende und Einzelpersonen"'
which looks like ü latin1 encoding to me and raises an UnicodeDecodeError on decoding. This seems to be a bug in vswhere itself but I am unsure if the -utf8 flag guarantees pure utf8 output.
The return value of
check_output
inexecute
subprocess.check_output(args).decode('utf-8')
contains
b'"description": "Leistungsstarke IDE, kostenlos f\x81r Studenten, Open-Source-Mitwirkende und Einzelpersonen"'
which looks like
ü
latin1 encoding to me and raises anUnicodeDecodeError
on decoding. This seems to be a bug invswhere
itself but I am unsure if the-utf8
flag guarantees pure utf8 output.