On Sat, May 7, 2011 at 5:35 AM, Marian Steinbach wrote:
> 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?
Nope, it's Latin-1 (or similar, e.g. Windows
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
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