function retruns unicode when ascii needed :(

Hello there,

I’m using GetRange in a wx.TextCtrl
to get a part of the text the user has written.

The bad thing is that the function returns
an unicode and I want an ascii string L

The returned character is u’é’
and later in python a library use it to do a u’é’.decode() that
fail because it was awaiting an ascii character…

I haven’t found a way to convert the Unicode
string into the ascii one…

Any idea??

Regards,

LAurent