[Qgis-user] Python console sys.stdout.encoding
Andrea Giudiceandrea
andreaerdna at libero.it
Mon Apr 8 04:21:03 PDT 2024
> Why with the python shell it is possible to ask what is the value of sys.stdout.encoding but this value does not exist in the python console of Qgis ?
Hi Pierre,
I think it's very likely due to:
https://github.com/qgis/QGIS/blob/35aadbc18a2245fce299a3597137c8d9b7f048b0/python/console/console_output.py#L139
sys.stdout = writeOut(self, sys.stdout)
In the Python console, sys.stdout is a <class
'console.console_output.writeOut'> object which doesn't have an
"encoding" attribute.
Best regards.
Andrea
More information about the QGIS-User
mailing list