#15 stdout.encoding in console

v1.0
closed-fixed
5
2014-02-14
2012-03-04
Redoute
No

In console, stdout.encoding is not set. Printing non-ascii fails.

Example:

[Python console in Notepad++]
>>> from sys import stdout
>>> print stdout.encoding
Traceback (most recent call last):
File "<console>", line 1, in <module>
AttributeError: 'Console' object has no attribute 'encoding'
>>> print u'äöü'
Traceback (most recent call last):
File "<console>", line 1, in <module>
UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-5: ordinal not in range(128)
[/Python console in Notepad++]

Discussion

    • Group: --> v1.0
     
    • status: open --> closed-fixed
     
  • Fixed in v1.0