How can i encode accented letters? (à,ò,ù,è,ì)
I've tried with utf-8 and with the replace without success.
I use python 1.4.1 on nokia n70.
Help me please.![]()
How can i encode accented letters? (à,ò,ù,è,ì)
I've tried with utf-8 and with the replace without success.
I use python 1.4.1 on nokia n70.
Help me please.![]()
You can encode them any way You want, but for the purpose of displaying on the S60 UI don't encode at all, use the base unicode syntax (\u0xx). If You want to see what Your letters look like in this syntax, try this:
As to displaying accented letters in the python shell, I have no clue myself.Code:import appuifw as a mytext = a.query(u'write some text','text') print repr(mytext) a.note(mytext)
I've changed the encode to utf8, before was utf-8 and now works fine!!!!