Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!goblin2!goblin.stu.neva.ru!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!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.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'memory.': 0.05; 'bytes.': 0.07; 'subject:How': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'subject:()': 0.09; 'subject:string': 0.09; 'subject:using': 0.09; 'aug': 0.13; 'sat,': 0.15; 'count.': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'subject: \n ': 0.16; 'subject:unicode': 0.16; 'subject:variable': 0.16; 'ucs-4': 0.16; '\xe9crit': 0.16; 'wrote:': 0.17; '>>>': 0.18; 'header:In-Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; 'coding': 0.27; "doesn't": 0.28; 'header:X-Complaints-To:1': 0.28; 'rest': 0.28; '-0700,': 0.29; '>>>>': 0.29; "d'aprano": 0.29; 'steven': 0.29; 'character': 0.29; "i'm": 0.29; '(and': 0.32; 'from:addr:yahoo.co.uk': 0.32; 'problem': 0.33; 'to:addr:python- list': 0.33; 'typically': 0.33; 'agree': 0.34; 'text': 0.34; 'received:org': 0.36; 'but': 0.36; 'subject:: ': 0.38; 'mark': 0.38; 'to:addr:python.org': 0.39; 'where': 0.40; 'header:Received:5': 0.40; 'you.': 0.61; 'story': 0.61; 'world': 0.63; 'email addr:gmail.com': 0.63; 'answer.': 0.71; 'samedi': 0.84; 'song': 0.84; 'subject:value': 0.84; 'song.': 0.91 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Mark Lawrence Subject: Re: How do I display unicode value stored in a string variable using ord() Date: Sat, 18 Aug 2012 20:45:53 +0100 References: <308df2af-abe7-4043-b199-0a39f440e0ab@googlegroups.com> <502f8a2a$0$29978$c3e8da3$5496439d@news.astraweb.com> <502fd7f6$0$29978$c3e8da3$5496439d@news.astraweb.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Gmane-NNTP-Posting-Host: host-78-146-1-115.as13285.net User-Agent: Mozilla/5.0 (Windows NT 6.0; rv:14.0) Gecko/20120713 Thunderbird/14.0 In-Reply-To: X-Antivirus: avast! (VPS 120818-0, 18/08/2012), Outbound message X-Antivirus-Status: Clean X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 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: 43 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1345319111 news.xs4all.nl 6985 [2001:888:2000:d::a6]:49904 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:27327 On 18/08/2012 19:30, wxjmfauth@gmail.com wrote: > Le samedi 18 août 2012 19:59:18 UTC+2, Steven D'Aprano a écrit : >> On Sat, 18 Aug 2012 08:07:05 -0700, wxjmfauth wrote: >> >> >> >>> Le samedi 18 août 2012 14:27:23 UTC+2, Steven D'Aprano a écrit : >> >>>> [...] >> >>>> The problem with UCS-4 is that every character requires four bytes. >> >>>> [...] >> >>> >> >>> I'm aware of this (and all the blah blah blah you are explaining). This >> >>> always the same song. Memory. >> >> >> >> Exactly. The reason it is always the same song is because it is an >> >> important song. >> >> > No offense here. But this is an *american* answer. > > The same story as the coding of text files, where "utf-8 == ascii" > and the rest of the world doesn't count. > > jmf > Thinking about it I entirely agree with you. Steven D'Aprano strikes me as typically American, in the same way that I'm typically Brazilian :) -- Cheers. Mark Lawrence.