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
_______________________________________________
QGIS-User mailing list
[email protected]
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Reply via email to