[New-bugs-announce] [issue30195] writing non-ascii characters in xml file using python code embedded in C

mahboubi report at bugs.python.org
Fri Apr 28 06:14:52 EDT 2017


New submission from mahboubi:

my python code embedded in C program, uses etree from lxml to write a plain string as element attribute in xml file. the problem is when my string contains non english characters(non ascii), the program fails to write even with unicode conversion such as unicode(mystring, "utf-8"), but when I use python code only, it works.

----------
components: XML
messages: 292521
nosy: aimad, benjamin.peterson, ezio.melotti, haypo, lemburg
priority: normal
severity: normal
status: open
title: writing non-ascii characters in xml file using python code embedded in C
type: crash
versions: Python 2.7

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue30195>
_______________________________________


More information about the New-bugs-announce mailing list