R. David Murray rdmur...@bitdance.com added the comment:
This is not quite a duplicate of issue 1368247, but in the patch for that issue
the doc changes should clarify the ambiguity.
--
resolution: - duplicate
stage: needs patch - committed/rejected
status: open - closed
type: -
Changes by Barry A. Warsaw ba...@python.org:
--
assignee: barry - r.david.murray
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6521
___
___
Changes by Éric Araujo mer...@netwok.org:
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6521
___
___
Python-bugs-list mailing list
Unsubscribe:
Shashwat Anand anand.shash...@gmail.com added the comment:
UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-7:
ordinal not in range(128)
The lack of unicode encoding support should be mentioned explicitly.
Attaching a doc patch.
--
keywords: +patch
nosy:
New submission from Antoine Pitrou pit...@free.fr:
It is not obvious whether encoding of an unicode argument will happen or
not:
« [...] No guessing or encoding is performed on the text data.
Changed in version 2.4: The previously deprecated _encoding argument has
been removed. Encoding
Antoine Pitrou pit...@free.fr added the comment:
Apparently it doesn't:
message = MIMEText(uhéhé, _charset=utf-8)
Traceback (most recent call last):
File stdin, line 1, in module
File /usr/lib64/python2.6/email/mime/text.py, line 30, in __init__
self.set_payload(_text, _charset)
File
Changes by Georg Brandl ge...@python.org:
--
assignee: georg.brandl - barry
nosy: +barry
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6521
___