Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!newsfeed.xs4all.nl!newsfeed2.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.006 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'programmer': 0.03; '(python': 0.07; 'utf-8': 0.07; 'badly': 0.09; 'python': 0.11; '"a"': 0.16; '3):': 0.16; 'assembler': 0.16; 'character.': 0.16; 'from:addr:mrabarnett.plus.com': 0.16; 'from:addr:python': 0.16; 'from:name:mrab': 0.16; 'guru': 0.16; 'interacting': 0.16; 'message-id:@mrabarnett.plus.com': 0.16; 'on)': 0.16; 'received:84.93': 0.16; 'received:84.93.230': 0.16; 'width.': 0.16; ':-)': 0.16; 'wrote:': 0.18; '>>>': 0.22; 'header:User- Agent:1': 0.23; 'bytes': 0.24; 'skip:" 30': 0.26; 'subject:/': 0.26; 'defined': 0.27; 'header:In-Reply-To:1': 0.27; 'characters': 0.30; '>>>>': 0.31; 'pascal': 0.31; 'languages': 0.32; 'another': 0.32; 'beginning': 0.33; 'equal': 0.35; 'received:84': 0.35; 'really': 0.36; 'science,': 0.36; 'transition': 0.36; 'thank': 0.38; 'arrange': 0.38; 'depends': 0.38; 'needed': 0.38; 'to:addr :python-list': 0.38; 'pm,': 0.38; 'to:addr:python.org': 0.39; 'skip:p 20': 0.39; 'even': 0.60; 'dave': 0.60; 'email addr:gmail.com': 0.63; 'header:Reply-To:1': 0.67; 'said:': 0.68; 'reply-to:no real name:2**0': 0.71; 'apart': 0.72; 'capital': 0.73; 'special': 0.74; 'reply-to:addr:python.org': 0.84; 'angel': 0.91 X-CM-Score: 0.00 X-CNFS-Analysis: v=2.1 cv=RZapVTdv c=1 sm=1 tr=0 a=0nF1XD0wxitMEM03M9B4ZQ==:117 a=0nF1XD0wxitMEM03M9B4ZQ==:17 a=0Bzu9jTXAAAA:8 a=K2DDQYBT4xIA:10 a=u80fQ1bUu3EA:10 a=ihvODaAuJD4A:10 a=OUOv7kDek9cA:10 a=IkcTkHD0fZMA:10 a=EBOSESyhAAAA:8 a=8AHkEIZyAAAA:8 a=v3zk7EHNYBYA:10 a=pGLkceISAAAA:8 a=rmaJw1i7E3WhEd_ybFMA:9 a=QEXdDO2ut3YA:10 a=MSl-tDqOz04A:10 X-AUTH: mrabarnett:2500 Date: Mon, 08 Jul 2013 22:38:04 +0100 From: MRAB User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:17.0) Gecko/20130620 Thunderbird/17.0.7 MIME-Version: 1.0 To: python-list@python.org Subject: Re: hex dump w/ or w/out utf-8 chars References: <7b6fc645-8bf3-4681-821c-38fb1fa1d191@googlegroups.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit 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: 27 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1373319468 news.xs4all.nl 15884 [2001:888:2000:d::a6]:55400 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:50178 On 08/07/2013 21:56, Dave Angel wrote: > On 07/08/2013 01:53 PM, ferdy.blatsco@gmail.com wrote: >> Hi Steven, >> >> thank you for your reply... I really needed another python guru which >> is also an English teacher! Sorry if English is not my mother tongue... >> "uncorrect" instead of "incorrect" (I misapplied the "similarity >> principle" like "unpleasant...>...uncorrect"). >> >> Apart from these trifles, you said: >>>> All characters are UTF-8, characters. "a" is a UTF-8 character. So is "ă". >> Not using python 3, for me (a programmer which was present at the beginning of >> computer science, badly interacting with many languages from assembler to >> Fortran and from c to Pascal and so on) it was an hard job to arrange the >> abrupt transition from characters only equal to bytes to some special >> characters defined with 2, 3 bytes and even more. > > 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}") AA