UnicodeError: ASCII decoding error: ordinal not in range(128)

Martin v. Loewis martin at v.loewis.de
Fri Jul 19 20:24:05 EDT 2002


eugene kim <eugene1977 at hotmail.com> writes:

> i used this code..
> self.url=attributes["url"].encode('utf-8')
> what should i do more?

You need to encode all Unicode objects that you have, not just the url
attributes.

Regards,
Martin




More information about the Python-list mailing list