[pygtk] Problem in fetching Unicode from URL and displaying it in PyGTK widget

John Finlay finlay at moeraki.com
Fri Jul 17 13:12:09 WST 2009


Bertrand Kintanar wrote:
> Hi list
>
> I've been working on a personal project and for some reason I need to 
> read a html file and then store what I've read into database. And 
> since there is huge possibility that the html file contains some 
> unicode in it (e.g. `ñ' ) I'm having a hard time 
> converting/displaying the right ascii equivalent to it (e.g. letter 
> `ñ'). I don't care what format to store it to database, may it be in 
> coded form or the ascii form. I can just make a function to convert it 
> later. My problem is how to convert it.
>
Maybe you could gzip it and base64 encode it before stuffing it into the DB?

John


More information about the pygtk mailing list