[pygtk] Problem in fetching Unicode from URL and displaying it in PyGTK widget
Chris Camacho
chris_camacho at yahoo.com
Fri Jul 17 20:13:04 WST 2009
http://docs.python.org/library/codecs.html#standard-encodings
you can use these with string encode and presumably with ''.decode too...
btw sorry I didn't cc to the list last time i forgot how oddly this list is set up, its a right pita!
--- On Fri, 17/7/09, Bertrand Kintanar <b3rxkintanar at gmail.com> wrote:
> From: Bertrand Kintanar <b3rxkintanar at gmail.com>
> Subject: Re: [pygtk] Problem in fetching Unicode from URL and displaying it in PyGTK widget
> To: "Chris Camacho" <chris_camacho at yahoo.com>
> Date: Friday, 17 July, 2009, 12:59 PM
> On 7/17/09 7:53 PM, Chris Camacho
> wrote:
> > hmmm...
> >
> > being that
> >
> > print '\\'
> >
> > displays
> >
> > '\'
> >
> > isn't that a bug?
> >
> >
> that is one of my question that it been troubling me. why
> is replace
> have a special treatment in dealing with escape characters
> while other
> function such as print does the exact thing which escapes
> the character.
> if i follow it correctly replace should only see one
> backslash to be
> inserted in the string instead of two.
>
> i have found this post in python mailing list:
>
> http://mail.python.org/pipermail/python-list/2007-May/614590.html.
>
> But I want the exact opposite from that post. from HTML
> entries to
> Unicode. so there must be some way to reverse that
> function. correct?
>
More information about the pygtk
mailing list