In that case can you not just use the internal encoding?
ET.ElementTree(testtag).write('testunicode.xml',encoding="UTF-8",xml_declaration=True)
On 26 November 2015 at 19:30, Rémi Deletrain <[email protected]>
wrote:
> Hi Mark,
>
> My file is xml. I use ElementTree for get data.
>
> And for get text data I just have myText = myElement.text
>
> I don't know other wy for xml file...
>
> --
> You received this message because you are subscribed to the Google Groups
> "Python Programming for Autodesk Maya" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/python_inside_maya/2dd46cf7-f77c-4b96-9d1a-a0e89f755676%40googlegroups.com
> .
> For more options, visit https://groups.google.com/d/optout.
>
--
-------------------------------------
Mark Jackson
CEO / Technical Director
red9consultancy.com
--
You received this message because you are subscribed to the Google Groups
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/python_inside_maya/CAGQH2FGMXOxZmWw4SSpoYD_gQ7phnODZePQ5H3vqycL0uHzy5w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.