Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Chris Angelico Newsgroups: comp.lang.python Subject: Re: Unicode failure Date: Sat, 5 Dec 2015 17:10:40 +1100 Lines: 34 Message-ID: References: <20151204130738.76313c43@imp> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: news.uni-berlin.de MHWYNbKyxqmBjn1pKGDcTQL6QLWE6Ugo6CqZELkZJ+nQ== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.004 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'received:209.85.223': 0.03; 'pages.': 0.07; 'cc:addr:python-list': 0.09; '1200,': 0.09; 'fail,': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'reedy': 0.16; 'subject:Unicode': 0.16; 'wrote:': 0.16; '>>>': 0.20; 'windows': 0.20; '2015': 0.20; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; "aren't": 0.22; 'dec': 0.23; 'sat,': 0.23; 'header:In-Reply-To:1': 0.24; 'message-id:@mail.gmail.com': 0.27; 'windows,': 0.29; 'character': 0.29; "i'm": 0.30; 'print': 0.30; 'code': 0.30; 'idle': 0.33; 'received:google.com': 0.35; 'but': 0.36; 'received:209.85': 0.36; 'pm,': 0.36; 'subject:: ': 0.37; 'received:209': 0.38; 'test': 0.39; 'sure': 0.39; 'entire': 0.61; 'is.': 0.63; "they're": 0.66; 'chrisa': 0.84; 'to:none': 0.91 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type:content-transfer-encoding; bh=Ws56NU1WsIQmoemsTL2Tm2uFzCjBeWJTShxsmmvT/8M=; b=XUkLZBjtxU28SqE538j81EEfl909p7O1OuaysoUXL3MfJ2p42u2BfH+Huc9J/J0alj /i/OqqpD3fcxntzDaUNyCwOYstAwRHXKxvQbP7c3XMsRG6Y9Y5T/OLdIVZYW5Qkg0kTI 1SIZ+2+wk+cdaOQRI586ZkJ10fXBTYo4tIJx1vghvESCIGu7nCPl7Qe36laM6FMlErju 021jQ9+l+2hEB6v0dyLhwi2/O5C0IzGnfxO4l0xqvk8PryC8rJ6X/ej9OXDvBNiNr6v+ zWsKZ4KIzPtflJioXAmNuZPOXDS2kHdDy89HnJFDKLpcoVgId6eV2pNRiS3S1/P6utGt 1bMA== X-Received: by 10.107.3.163 with SMTP id e35mr16030547ioi.157.1449295840840; Fri, 04 Dec 2015 22:10:40 -0800 (PST) In-Reply-To: X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com comp.lang.python:100030 On Sat, Dec 5, 2015 at 5:06 PM, Terry Reedy wrote: > On 12/4/2015 10:22 PM, Random832 wrote: >> >> On 2015-12-04, Terry Reedy wrote: >>> >>> Tk widgets, and hence IDLE windows, will print any character from \u000= 0 >>> to \uffff without raising, even if the result is blank or =EF=BF=BD. H= igher >>> codepoints fail, but allowing the entire BMP is better than any Windows >>> codepage. >> >> >> Well, any bar 1200, 1201, 12000, 12001, 65000, 65001, and 54936. > > > Test before you post. > >>>> for cp in 1200, 1201, 12000, 12001, 65000, 65001, 54936: > print(chr(cp)) > > > =D2=B0 > =D2=B1 > =E2=BB=A0 > =E2=BB=A1 > =EF=BF=BD > =EF=BF=BD > =ED=9A=98 Those numbers aren't codepoints, they're code pages. Specifically, they're UTF-16, UTF-32, UTF-8, and I'm not sure what 54936 is. ChrisA