On 7/17/09 8:23 PM, saeed wrote:
> Use function "eval", for example:
>
> data = 'á'
> uni = eval("u'\\%s'"%data[2:]) ## u'\xE1' or u'á'
> st = uni.encode('utf-8') ## 'á'
>
> Is there another problem?
>
>
thanks saeed! that works great! how can i make this work if the
character to be converted is found between characters. e.g. Guzán ?
_______________________________________________
pygtk mailing list [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/