I'm trying to get the files and directories of the current working directory with
info = subprocess.run("dir", shell=True, capture_output=True)
print(info.stdout)
but I have files with é
and they are printed as ,
instead...
I also have a problem with the free bytes, I get that :
49ÿ372ÿ921ÿ856 octets libres
I tried to decode it but I get an error saying AttributeError: 'std_output' object has no attribute 'decode'
So apparently it's already decoded.