Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.mixmin.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed4a.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.048 X-Spam-Evidence: '*H*': 0.90; '*S*': 0.00; 'lines,': 0.07; 'subject:characters': 0.09; 'cc:addr:python-list': 0.11; 'windows': 0.15; 'conclusion:': 0.16; 'fine.': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'hmm.': 0.16; 'renders': 0.16; 'subject:Unicode': 0.16; 'unicode,': 0.16; 'unlikely': 0.16; 'wrote:': 0.18; 'bit': 0.19; 'drawing': 0.19; 'aug': 0.22; 'cc:addr:python.org': 0.22; 'instance,': 0.24; 'subject:problem': 0.24; 'mon,': 0.24; 'cc:2**0': 0.24; 'right.': 0.26; '(for': 0.26; 'header:In-Reply- To:1': 0.27; 'chris': 0.29; 'am,': 0.29; 'characters': 0.30; 'message-id:@mail.gmail.com': 0.30; 'lines': 0.31; 'font': 0.31; 'subject:some': 0.31; 'vertical': 0.31; "i'd": 0.34; 'subject:with': 0.35; 'display': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'so,': 0.37; 'ahead': 0.38; 'issue': 0.38; 'little': 0.38; 'most': 0.60; 'more': 0.64; 'different': 0.65; 'between': 0.67; 'default': 0.69; 'characters,': 0.84; 'distinguish': 0.84; 'drawings': 0.84; 'fonts': 0.84; 'played': 0.84; 'visually': 0.84; 'worth,': 0.84; 'to:none': 0.92; 'yourself,': 0.95 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; bh=vg9qzrMUjknZVDC2DMuirWVo9QG0OfsHeFgJQ8TQHnE=; b=zF/GX2wvJjV2Unt+tfvzB3nDtcCQwE5NlAIzAZv/lnYJWZXeGAnKvhKu9Qlq13tDpW 6AGp8sAxBL7L7HjVL06daIQwUGiVGyQhKt1aimKWEYiGfkVrL5D506AV3XRvq/kLWFqo thLU9tv6bvoWZs0Rl73CBxDnYk1MVH+ggWDEgpkX2wRcVTYqeef3kgj7ZaF4oyCpnBTf WWsUcak1hKtDTEPFGVaCI+gstb9hr/saJdJxZtrfh0tqFmD3ZbDMKUHrDSrST5iVEGVf GxifT+Fh5sMH70kXAtULtLk0SnYOTxOar4MV2rn7pyHhm2XPXvXsw6+ntC3g2y89tG/J udEw== MIME-Version: 1.0 X-Received: by 10.50.176.202 with SMTP id ck10mr31736549igc.2.1407111243911; Sun, 03 Aug 2014 17:14:03 -0700 (PDT) In-Reply-To: References: <53DEC4F5.8090805@my.hennepintech.edu> Date: Mon, 4 Aug 2014 10:14:03 +1000 Subject: Re: cmd.exe on WIndows - problem with displaying some Unicode characters From: Chris Angelico Cc: "python-list@python.org" Content-Type: text/plain; charset=UTF-8 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: 23 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1407111252 news.xs4all.nl 2881 [2001:888:2000:d::a6]:60205 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:75633 On Mon, Aug 4, 2014 at 9:39 AM, Chris Angelico wrote: > I just played around with a CP-437 decode of everything 128-255, > rendered in various different fonts, all using my MUD client on > Windows. (For what it's worth, it renders using GTK2 and Pango. But I > suspect this is more a font issue than a display engine one.) Most > fonts had those little boxes-with-numbers for most of the line drawing > characters, but Lucida Sans Unicode, Meiryo, and Tahoma all managed to > display all the characters. However, I wasn't able to visually > distinguish between the single-line and double-line characters, so you > may want to play around with it a bit more. Hmm. Actually... I'd mucked up my CP-437 decode. For instance, I'd represented 0xC8 as U+251D BOX DRAWINGS VERTICAL LIGHT AND RIGHT HEAVY, where it's actually U+255A BOX DRAWINGS DOUBLE UP AND RIGHT. When I get the right characters, the default fonts on Windows work just fine. (There's still the issue that the supposedly "HEAVY" lines are coming out with the exact same thickness as the "LIGHT" lines, but that's unlikely to bother you as you don't need those characters.) So, conclusion: If you do the drawing yourself, all those characters are fine. Go ahead and use them! ChrisA