Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder2.hal-mli.net!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.003 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; '21,': 0.07; 'encoded': 0.07; 'utf-8': 0.07; 'string': 0.09; 'ascii': 0.09; 'bytes,': 0.09; 'differently.': 0.09; 'subject:few': 0.09; 'subset': 0.09; '16-bit': 0.16; 'doing,': 0.16; 'from:addr:mrabarnett.plus.com': 0.16; 'from:addr:python': 0.16; 'from:name:mrab': 0.16; 'guilty': 0.16; 'message-id:@mrabarnett.plus.com': 0.16; 'wrote:': 0.18; '(not': 0.18; 'coding': 0.22; 'previously': 0.22; 'header:User- Agent:1': 0.23; 'byte': 0.24; 'unicode': 0.24; 'equivalent': 0.26; 'header:In-Reply-To:1': 0.27; 'chris': 0.29; 'am,': 0.29; 'points': 0.29; 'characters': 0.30; 'code': 0.31; 'schemes': 0.31; 'fri,': 0.33; 'implemented': 0.33; 'something': 0.35; 'two': 0.37; 'handle': 0.38; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'units': 0.60; 'more': 0.64; 'header:Reply-To:1': 0.67; 'reply-to:no real name:2**0': 0.71; 'beloved': 0.84; 'common,': 0.84; 'points,': 0.84; 'reply-to:addr:python.org': 0.84; '2013': 0.98 X-CM-Score: 0.00 X-CNFS-Analysis: v=2.1 cv=KrN0hwmN c=1 sm=1 tr=0 a=0nF1XD0wxitMEM03M9B4ZQ==:117 a=0nF1XD0wxitMEM03M9B4ZQ==:17 a=0Bzu9jTXAAAA:8 a=oyR3mlnJdzkA:10 a=Ul6cpnYf0ckA:10 a=ihvODaAuJD4A:10 a=OUOv7kDek9cA:10 a=8nJEP1OIZ-IA:10 a=EBOSESyhAAAA:8 a=8AHkEIZyAAAA:8 a=ss88cSErNWgA:10 a=pGLkceISAAAA:8 a=3RcoyzAhsMNNB5NY8J8A:9 a=wPNLvfGTeEIA:10 a=MSl-tDqOz04A:10 X-AUTH: mrabarnett:2500 Date: Thu, 20 Jun 2013 18:17:12 +0100 From: MRAB User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:17.0) Gecko/20130509 Thunderbird/17.0.6 MIME-Version: 1.0 To: python-list@python.org Subject: Re: A few questiosn about encoding References: <6dfa3707-80f4-407a-a109-66dbb0130513@googlegroups.com> <51b83e5a$0$29998$c3e8da3$5496439d@news.astraweb.com> <51b90ead$0$29997$c3e8da3$5496439d@news.astraweb.com> <51b9708b$0$29872$c3e8da3$5496439d@news.astraweb.com> <77ba6b16-4b1d-47a6-9b9b-5af45335c4fe@googlegroups.com> <51c2a089$0$29973$c3e8da3$5496439d@news.astraweb.com> <114200cf-2d46-46cb-bb5f-7c5f8ab98a66@googlegroups.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: python-list@python.org List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 22 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1371748640 news.xs4all.nl 15986 [2001:888:2000:d::a6]:47031 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:48810 On 20/06/2013 17:37, Chris Angelico wrote: > On Fri, Jun 21, 2013 at 2:27 AM, wrote: >> And all these coding schemes have something in common, >> they work all with a unique set of code points, more >> precisely a unique set of encoded code points (not >> the set of implemented code points (byte)). >> >> Just what the flexible string representation is not >> doing, it artificially devides unicode in subsets and try >> to handle eache subset differently. >> > > > UTF-16 divides Unicode into two subsets: BMP characters (encoded using > one 16-bit unit) and astral characters (encoded using two 16-bit units > in the D800::/5 netblock, or equivalent thereof). Your beloved narrow > builds are guilty of exactly the same crime as the hated 3.3. > UTF-8 divides Unicode into subsets which are encoded in 1, 2, 3, or 4 bytes, and those who previously used ASCII still need only 1 byte per codepoint!