Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed2a.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.000 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'from:addr:yahoo.co.uk': 0.04; 'irc': 0.05; 'output': 0.05; 'apis': 0.09; 'lawrence': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'subject:characters': 0.09; 'python': 0.11; 'language.': 0.14; 'windows': 0.15; '(both': 0.16; 'displaying': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'subject:Unicode': 0.16; 'underlying': 0.16; 'language': 0.16; 'wrote:': 0.18; 'possible,': 0.19; 'written': 0.21; 'input': 0.22; 'header:User-Agent:1': 0.23; 'subject:problem': 0.24; 'unicode': 0.24; 'fine': 0.24; 'logging': 0.26; 'header:X-Complaints-To:1': 0.27; 'header:In-Reply-To:1': 0.27; 'chris': 0.29; '[1]': 0.29; 'url:code': 0.29; 'andrew': 0.30; 'characters': 0.30; 'forgot': 0.30; '(my': 0.31; 'subject:some': 0.31; 'quite': 0.32; 'text': 0.33; 'plain': 0.33; 'subject:with': 0.35; 'display': 0.35; 'but': 0.35; 'there': 0.35; 'largely': 0.36; 'problems': 0.38; 'to:addr :python-list': 0.38; 'does': 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'issues,': 0.61; "you're": 0.61; 'our': 0.64; 'url:p': 0.64; 'charset:windows-1252': 0.65; 'containing': 0.69; 'bot': 0.84; 'difficult,': 0.91 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Mark Lawrence Subject: Re: cmd.exe on WIndows - problem with displaying some Unicode characters Date: Mon, 04 Aug 2014 00:29:42 +0100 References: <53DEC4F5.8090805@my.hennepintech.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: host-92-24-217-238.ppp.as43234.net User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.0 In-Reply-To: <53DEC4F5.8090805@my.hennepintech.edu> 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: 25 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1407108599 news.xs4all.nl 2943 [2001:888:2000:d::a6]:51014 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:75630 On 04/08/2014 00:25, Andrew Berg wrote: > On 2014.08.03 18:08, Chris Angelico wrote: >> The best way to do it is to use the Unicode codepage, but cmd.exe just >> plain has issues. There are underlying Windows APIs for displaying >> text that have problems with astral characters (I think that's what it >> is), so ultimately, you're largely stuck. > That is not quite true. The terminal has these issues, not the shell. Using > cp65001 does make Unicode in a Windows terminal possible, but using a better > terminal[1] makes it almost perfect (my experience has been that input can be > difficult, but output works well). I personally have used an IRC bot written in > Python with logging output containing Unicode characters that display just fine > (both locally and over SSH). > > [1] I recommend ConEmu: https://code.google.com/p/conemu-maximus5/ > *facepalm* forgot all about ConEmu, but then I only use it on a daily basis :) -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence