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 <[email protected]> wrote:

> From: Bertrand Kintanar <[email protected]>
> Subject: Re: [pygtk] Problem in fetching Unicode from URL and displaying it 
> in PyGTK widget
> To: "Chris Camacho" <[email protected]>
> 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?
>



      
_______________________________________________
pygtk mailing list   [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/

Reply via email to