[Tutor] encoding question

eryksun eryksun at gmail.com
Sun Jan 5 05:47:53 CET 2014


On Sat, Jan 4, 2014 at 11:16 PM, Alex Kleider <akleider at sonic.net> wrote:
> {u'city': None, u'ip': u'201.234.178.62', u'lat': u'10.4', u'country_code':
> u'CO', u'country_name': u'COLOMBIA', u'lng': u'-75.2833'}
>
> If I use my own IP the city comes in fine so there must still be some
> problem with the encoding.

Report a bug in their JSON API. It's returning b'"city":null'. I see
the same problem for www.msj.go.cr in San José, Costa Rica. It's
probably broken for all non-ASCII byte strings.


More information about the Tutor mailing list