This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Lukáš.Němec
Recipients Lukáš.Němec
Date 2015-03-11.08:35:04
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1426062904.63.0.0951614232281.issue23637@psf.upfronthosting.co.za>
In-reply-to
Content
File "/usr/lib/python2.7/warnings.py", line 29, in _show_warning
    file.write(formatwarning(message, category, filename, lineno, line))
  File "/usr/lib/python2.7/warnings.py", line 38, in formatwarning
    s =  "%s:%s: %s: %s\n" % (filename, lineno, category.__name__, message)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xed' in position 42: ordinal not in range(128)

Only thing required to make this work is add "u" in front of the message so it is unicode. This will work for all ascii characters and all non-ascii should pass unicode anyway.
History
Date User Action Args
2015-03-11 08:35:04Lukáš.Němecsetrecipients: + Lukáš.Němec
2015-03-11 08:35:04Lukáš.Němecsetmessageid: <1426062904.63.0.0951614232281.issue23637@psf.upfronthosting.co.za>
2015-03-11 08:35:04Lukáš.Němeclinkissue23637 messages
2015-03-11 08:35:04Lukáš.Němeccreate