Serhiy Storchaka added the comment: pprint is not print.
>>> print('\u20ac') € >>> import pprint; pprint.pprint('\u20ac') '€' Default sys.displayhook doesn't fail on unencodable output. $ LANG=C ./python Python 3.4.0b1 (default:e961a166dc70+, Dec 11 2013, 13:57:17) [GCC 4.6.3] on linux Type "help", "copyright", "credits" or "license" for more information. >>> '\u20ac' '\u20ac' ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue19100> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com