Re: [Python] Re: [Commits] python.it commit r258

2007-01-11 Per discussione Manlio Perillo
Lawrence Oluyede ha scritto: > charset = _get_charset(content_type) or "utf-8" > - > +charset = 'iso-8859-1' # XXX Google madness? > return fp.read().decode(charset) > C'è un problema qui. Come mai Google usa iso-8859-1? Come si fa a sapere quale encoding usare? Vi ricordo che Goo

Re: [Python] Re: [Commits] python.it commit r258

2007-01-11 Per discussione Lawrence Oluyede
> charset = _get_charset(content_type) or "utf-8" > - > +charset = 'iso-8859-1' # XXX Google madness? > return fp.read().decode(charset) > C'è un problema qui. Come mai Google usa iso-8859-1? Come si fa a sapere quale encoding usare? Vi ricordo che Google nel content type restituis

[Python] Re: [Commits] python.it commit r258

2007-01-11 Per discussione Manlio Perillo
[EMAIL PROTECTED] ha scritto: Author: manlio Date: Thu Jan 11 15:07:11 2007 New Revision: 258 Modified: code/pythonisti/trunk/pythonisti/geo/google.py code/pythonisti/trunk/pythonisti/geo/models.py Log: Corretta gestione encoding Modified: code/pythonisti/trunk/pythonisti/geo/google.py ==