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


Groups > comp.lang.python > #33477

Re: latin1 and cp1252 inconsistent?

References <f063ebaf-89ee-4558-a762-0241efa39dcc@googlegroups.com> <pan.2012.11.17.00.33.13.539000@nowhere.com> <32ab6e2e-e1b1-41ea-8ef4-6e4f763065bf@googlegroups.com> <CALwzidmESMACFiqjs2YPQMNW2qyN8vcyryuocehfF2P5qK6Mdg@mail.gmail.com>
From Ian Kelly <ian.g.kelly@gmail.com>
Date 2012-11-17 11:13 -0700
Subject Re: latin1 and cp1252 inconsistent?
Newsgroups comp.lang.python
Message-ID <mailman.3776.1353176064.27098.python-list@python.org> (permalink)

Show all headers | View raw


On Sat, Nov 17, 2012 at 11:08 AM, Ian Kelly <ian.g.kelly@gmail.com> wrote:
> On Sat, Nov 17, 2012 at 9:56 AM,  <buck@yelp.com> wrote:
>> "should" is a wish. The reality is that documents (and especially URLs) exist that can be decoded with latin1, but will backtrace with cp1252. I see this as a sign that a small refactorization of cp1252 is in order. The proposal is to change those "UNDEFINED" entries to "<control>" entries, as is done here:
>>
>> http://dvcs.w3.org/hg/encoding/raw-file/tip/index-windows-1252.txt
>>
>> and here:
>>
>> ftp://ftp.unicode.org/Public/MAPPINGS/VENDORS/MICSFT/WindowsBestFit/bestfit1252.txt
>
> The README for the "BestFit" document states:
>
> """
> These tables include "best fit" behavior which is not present in the
> other files. Examples of best fit
> are converting fullwidth letters to their counterparts when converting
> to single byte code pages, and
> mapping the Infinity character to the number 8.
> """
>
> This does not sound like appropriate behavior for a generalized
> conversion scheme.  It is also noted that the "BestFit" document is
> not authoritative at:
>
> http://www.iana.org/assignments/charset-reg/windows-1252

I meant to also comment on the first link, but forgot.  As that
document is published by the W3C, I understand it to be specific to
the Web, which Python is not.  Hence I think the more general Unicode
specification is more appropriate for Python.

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


Thread

latin1 and cp1252 inconsistent? buck@yelp.com - 2012-11-16 13:44 -0800
  Re: latin1 and cp1252 inconsistent? Ian Kelly <ian.g.kelly@gmail.com> - 2012-11-16 15:33 -0700
    Re: latin1 and cp1252 inconsistent? buck@yelp.com - 2012-11-16 15:27 -0800
      Re: latin1 and cp1252 inconsistent? Dave Angel <d@davea.name> - 2012-11-16 19:05 -0500
      Re: latin1 and cp1252 inconsistent? Ian Kelly <ian.g.kelly@gmail.com> - 2012-11-16 17:20 -0700
      Re: latin1 and cp1252 inconsistent? Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2012-11-18 01:48 -0500
    Re: latin1 and cp1252 inconsistent? buck@yelp.com - 2012-11-16 15:27 -0800
  Re: latin1 and cp1252 inconsistent? Nobody <nobody@nowhere.com> - 2012-11-17 00:33 +0000
    Re: latin1 and cp1252 inconsistent? Ian Kelly <ian.g.kelly@gmail.com> - 2012-11-16 18:08 -0700
    Re: latin1 and cp1252 inconsistent? buck@yelp.com - 2012-11-17 08:56 -0800
      Re: latin1 and cp1252 inconsistent? Ian Kelly <ian.g.kelly@gmail.com> - 2012-11-17 11:08 -0700
      Re: latin1 and cp1252 inconsistent? Ian Kelly <ian.g.kelly@gmail.com> - 2012-11-17 11:13 -0700
      Re: latin1 and cp1252 inconsistent? Nobody <nobody@nowhere.com> - 2012-11-17 19:15 +0000

csiph-web