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
Changes by Dongying Zhang :
--
versions: +3rd party
___
Python tracker
<http://bugs.python.org/issue13612>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Dongying Zhang :
--
type: -> behavior
___
Python tracker
<http://bugs.python.org/issue13612>
___
___
Python-bugs-list mailing list
Unsubscri
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
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