Kent,
Thanks so much. It's easy when you know how. Now that I know, I only need
the encode('utf-8') step since geopy does the urlencode step.
On Thu, 17 May 2007, Kent Johnson wrote:
> It's two steps. First convert to utf-8, then urlencode:
c = u'\xe2'
c
> u'\xe2'
c.encode('utf-8
Jon Crump wrote:
> Dear all,
>
> I've got a python list of data pulled via ElementTree from an xml file
> that contains mixed str and unicode
> strings, like this:
>
> [u'Jumi\xe9ge, Normandie', 'Farringdon, Hampshire', 'Ravensworth,
> Durham', 'La Suse, Anjou', 'Lions, Normandie', 'Lincoln,
Dear all,
I've got a python list of data pulled via ElementTree from an xml file
that contains mixed str and unicode
strings, like this:
[u'Jumi\xe9ge, Normandie', 'Farringdon, Hampshire', 'Ravensworth,
Durham', 'La Suse, Anjou', 'Lions, Normandie', 'Lincoln, Lincolnshire',
'Chelmsford, Esse