Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #61605

Re: Movie (MPAA) ratings and Python?

From Ned Batchelder <ned@nedbatchelder.com>
Subject Re: Movie (MPAA) ratings and Python?
Date 2013-12-11 13:35 -0500
References <CAGGBd_pn4Mv8R0QuueG093YR82a3+EM2Sy+mF5d1aJ1D25yoeA@mail.gmail.com> <2CDEC558-B896-402C-8F70-A3089A5EC93D@gmail.com> <CAGGBd_qOi=rahykpRwTFmXQMnKb4sLd-8T4jGYM6kF_R=9U29w@mail.gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.3920.1386786929.18130.python-list@python.org> (permalink)

Show all headers | View raw


On 12/10/13 6:50 PM, Dan Stromberg wrote:
>
> On Tue, Dec 10, 2013 at 1:07 PM, Petite Abeille
> <petite.abeille@gmail.com <mailto:petite.abeille@gmail.com>> wrote:
>
>
>     On Dec 10, 2013, at 6:25 AM, Dan Stromberg <drsalists@gmail.com
>     <mailto:drsalists@gmail.com>> wrote:
>
>      > The IMDB flat text file probably came the closest, but it appears
>     to have encoding issues; it's apparently nearly windows-1255, but
>     not quite.
>
>     It's ISO-8859-1.
>
> Thanks - that reads well from CPython 3.3.
>
> Now the question becomes: Why did chardet tell me it was windows-1255?  :)

It probably told you it was Windows-1252 (I'm assuming the last 5 is a 
typo).

Windows-1252 is a super-set of ISO-8859-1, so any text that is correct 
ISO-8859-1 is also correct Windows-1252.  In addition, it's not uncommon 
to find text marked as ISO-8859-1 that in fact has characters that make 
it Windows-1252.


-- 
Ned Batchelder, http://nedbatchelder.com

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: Movie (MPAA) ratings and Python? Ned Batchelder <ned@nedbatchelder.com> - 2013-12-11 13:35 -0500

csiph-web