Hi everybody,
I try to encode a string utf-8
myString = "" === Pr \ u00e9sentation of ... === ""
with "\ u00e9", which is the letter "é"
but I happens by no means has transform my string properly.
I decode with "cp1252"
and again with "latin1"
with variable myString I have no problem, but on a
I'd take a look at the codecs module in Python, certainly if you're looking
to read/write the data from file. We're doing a lot of localisation for
language support at the moment
with codecs.open(textfilepath, 'w', encoding='utf8') as fp:
fp.write(text_to_write)
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 f
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
wrote:
> Hi Mark,
>
> My file is xml. I use ElementTree for get data.
>
> And for get text data I just ha
I tried this way but it does not work properly...
I have always problem with encode format
--
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
t
It doesn't sound like libraries will solve your problem, but rather gaining
a deeper understanding of encoding and strings. There are some very good
PyCon conferences that I think should touch on what you are looking to
understand.
- https://www.youtube.com/watch?v=Mx70n1dL534
- https://www.youtub
thank you marcus I'll watch it whenever I can!
--
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 python_inside_maya+unsubscr...@googlegrou