Character encoding

mp mailpitches at email.com
Tue Nov 7 15:10:01 EST 2006


I'd prefer a more generalized solution which takes care of all possible
ampersand characters. I assume that there is code already written which
does this.

Thanks

i80and wrote:
> I would suggest using string.replace.  Simply replace '&nbsp' with ' '
> for each time it occurs.  It doesn't take too much code.
>
> On Nov 7, 1:34 pm, "mp" <mailpitc... at email.com> wrote:
> > I have html document titles with characters like >,  , and
> > &#135. How do I decode a string with these values in Python?
> > 
> > Thanks




More information about the Python-list mailing list