Re: Stuck with urllib.quote and Unicode/UTF-8

2011-05-07 Thread Marian Steinbach
An addition/correction: It seems as if my input variable address is not Unicode. This is what I get for print [address]: ['K\xf6ln, Nordrhein-Westfalen'] Isn't this utf-8 encoding? And I'm using Python 2.5.2. -- http://mail.python.org/mailman/listinfo/python-list

Stuck with urllib.quote and Unicode/UTF-8

2011-05-07 Thread Marian Steinbach
Hi! I am stuck with calling URLs with parameters containing non-ASCII characters. I'm creating a url like this. url = 'http://maps.googleapis.com/maps/api/geocode/json?address=' + urllib.quote(address) + '&sensor=false&language=DE' address can be a string like u"Köln, Nordrhein-Westfalen". Thi