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


Groups > comp.lang.python > #100030

Re: Unicode failure

Path csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail
From Chris Angelico <rosuav@gmail.com>
Newsgroups comp.lang.python
Subject Re: Unicode failure
Date Sat, 5 Dec 2015 17:10:40 +1100
Lines 34
Message-ID <mailman.220.1449295849.14615.python-list@python.org> (permalink)
References <20151204130738.76313c43@imp> <n3t7jo$ae3$1@ger.gmane.org> <n3tla3$7p7$1@ger.gmane.org> <n3tutf$6n8$1@ger.gmane.org>
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 <rosuav@gmail.com>
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 <n3tutf$6n8$1@ger.gmane.org>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.20+
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Xref csiph.com comp.lang.python:100030

Show key headers only | View raw


On Sat, Dec 5, 2015 at 5:06 PM, Terry Reedy <tjreedy@udel.edu> wrote:
> On 12/4/2015 10:22 PM, Random832 wrote:
>>
>> On 2015-12-04, Terry Reedy <tjreedy@udel.edu> wrote:
>>>
>>> Tk widgets, and hence IDLE windows, will print any character from \u0000
>>> to \uffff without raising, even if the result is blank or �.  Higher
>>> 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))
>
>
> Ұ
> ұ
> ⻠
> ⻡
> �
> �
> 횘

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

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


Thread

Re: Unicode failure Chris Angelico <rosuav@gmail.com> - 2015-12-05 17:10 +1100

csiph-web