Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder3.xlned.com!news2.euro.net!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.111 X-Spam-Level: * X-Spam-Evidence: '*H*': 0.85; '*S*': 0.07; 'mrab': 0.05; '(python': 0.07; 'width': 0.09; '3):': 0.16; 'width.': 0.16; ':-)': 0.16; 'wrote:': 0.18; 'subject:/': 0.26; 'header:In-Reply-To:1': 0.27; 'character': 0.29; 'characters': 0.30; 'message- id:@mail.gmail.com': 0.30; '>>>>': 0.31; 'question:': 0.31; 'to:name:python-list': 0.33; 'received:google.com': 0.35; 'depends': 0.38; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'skip:p 20': 0.39; 'how': 0.40; 'dave': 0.60; 'july': 0.63; 'capital': 0.73; 'angel': 0.91; 'serious': 0.97; '2013': 0.98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; bh=/2uOiPeA/ZXQOXeogUv0c9R0us3LE8jAbgidFGg5sQk=; b=uQ/s67gYXblcyB9VoEE8t1HE381SV9NzVLpWhLoz2YNLF2u37aD8znKGfSpgGjYxNA SYKClX/PbJsNLlYecI5jcWo2DMgg2DYwygkG8r7tDwmFuCRyBVEWYBUtO55nHsblwGBV SA/i+xexKca3NSdJy1vdTucTNotaAhkCyuo4RlC9FRWknpaOlylhC4GgSRbaVKz+dBtS JqcLlt2WuM4UeY+tUo8IynZUEAtLnK1SracbTcSpYBzOv17h0OKJUwVlOWHaRXAdMWPf jLKbWiJeZ/AZ/lw0lPVUMmzMmyJMrXPJ/L6lE+I6mHXm9xE5spgHoqLkqJYi/UC2SQp5 4ZFQ== X-Received: by 10.152.42.171 with SMTP id p11mr11256305lal.79.1373321017661; Mon, 08 Jul 2013 15:03:37 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <51DB313C.4040701@mrabarnett.plus.com> References: <7b6fc645-8bf3-4681-821c-38fb1fa1d191@googlegroups.com> <51DB313C.4040701@mrabarnett.plus.com> From: Joshua Landau Date: Mon, 8 Jul 2013 23:02:57 +0100 Subject: Re: hex dump w/ or w/out utf-8 chars To: python-list Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list 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: 15 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1373321026 news.xs4all.nl 15891 [2001:888:2000:d::a6]:35772 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:50180 On 8 July 2013 22:38, MRAB wrote: > On 08/07/2013 21:56, Dave Angel wrote: >> Characters do not have a width. > > [snip] > > It depends what you mean by "width"! :-) > > Try this (Python 3): > >>>> print("A\N{FULLWIDTH LATIN CAPITAL LETTER A}") > A=EF=BC=A1 Serious question: How would one find the width of a character by that definition?