On Mon, Dec 1, 2014, at 11:32 PM, Adam Williamson wrote:
+# force python's default encoding to be utf-8, not ascii. all
the ways to
+# do this are bad, but this at least works for live and non-live.
+# see RHBZ #1169019, RHBZ #539904
+reload(sys)
+sys.setdefaultencoding('utf-8')
See also:
https://mail.python.org/pipermail/python-dev/2008-February/077134.html
I think pygobject still carries that, though I'm only seeing it in the
"pygtkcompat" layer.