unicode for beginners

2009-03-26 Thread WallyDD
I have something of a csv file which has somehow been converted into something that looks like this; " FOZ DE IGUAZ\u00da" and " R\u00cdO DE JANEIRO" Is there a simple way to convert this into something a little bit readable? Is there a simple command in python to convert this? Thank you. -- htt

Re: unicode for beginners

2009-03-26 Thread WallyDD
On Mar 26, 5:30 pm, Peter Otten <__pete...@web.de> wrote: > WallyDD wrote: > > I have something of a csv file which has somehow been converted into > > something that looks like this; > > " FOZ DE IGUAZ\u00da" and " R\u00cdO DE JANEIRO" > > >

Understanding JSON

2009-03-29 Thread WallyDD
Hello, I am trying to geocode some map data using the google maps API. By using the urllib I can get the JSON output; http://maps.google.com/maps/geo?q=New+York+USA&output=json&oe=utf8&sensor=true&key=your_api_key I then read it using; gmapiresult = json.loads(fg.read()) somedata = gmapiresult['

Re: Understanding JSON

2009-03-29 Thread WallyDD
On Mar 29, 4:58 pm, Chris Rebert wrote: > On Sun, Mar 29, 2009 at 1:39 PM, WallyDD wrote: > > Hello, > > > I am trying to geocode some map data using the google maps API. > > > By using the urllib I can get the JSON output; > >http://maps.google.com/maps/geo?q=Ne