[issue13612] xml.etree.ElementTree says unknown encoding of a regular encoding

2011-12-16 Thread Dongying Zhang
Changes by Dongying Zhang : -- type: -> behavior ___ Python tracker <http://bugs.python.org/issue13612> ___ ___ Python-bugs-list mailing list Unsubscri

[issue13612] xml.etree.ElementTree says unknown encoding of a regular encoding

2011-12-16 Thread Dongying Zhang
Changes by Dongying Zhang : -- versions: +3rd party ___ Python tracker <http://bugs.python.org/issue13612> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue13612] xml.etree.ElementTree says unknown encoding of a regular encoding

2011-12-16 Thread Dongying Zhang
New submission from Dongying Zhang : I've been trying to parse xml string using python, codes following: #-*- coding: utf-8 -*- import xml.etree.ElementTree as xmlet s = '' xmlet.fromstring(s) Then: $ python2.6 test.py or: $ pypy test.py Traceback messag

[issue8054] "as_string" method in email's mime objects encode text segmentedly

2010-03-04 Thread Dongying Zhang
Dongying Zhang added the comment: Hello R. David Murray: Thanks for your care. The examples I given both in message and file is just the same. You got the 'UnicodeEncodeError' because your system default encoding is ascii. The declaration of encoding at the top didn't

[issue8054] "as_string" method in email's mime objects encode text segmentedly

2010-03-04 Thread Dongying Zhang
New submission from Dongying Zhang : The as_string method in mime classes in module email.mime use base64 to encode the text, but segmentedly while the text contents non-acsii characters and is in type of unicode. This behavior confuse some of the email servers. For example