Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #20092

Re: unicode printing on Windows

Path csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder2.hal-mli.net!news.panservice.it!news.stack.nl!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!newsgate.cistron.nl!newsgate.news.xs4all.nl!news2.euro.net!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <python-python-list@m.gmane.org>
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; 'debug': 0.03; 'received:verizon.net': 0.07; 'terry': 0.07; 'python': 0.08; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'this).': 0.09; 'am,': 0.12; 'friendlier': 0.16; 'pdb': 0.16; 'reedy': 0.16; 'subject:unicode': 0.16; 'utf8': 0.16; 'subject:Windows': 0.17; 'wrote:': 0.18; 'loading': 0.18; 'jan': 0.19; 'header:In-Reply- To:1': 0.22; 'shell': 0.24; 'windows': 0.26; 'work.': 0.27; 'import': 0.27; 'tried': 0.27; 'depends': 0.28; 'idle': 0.29; 'unicode,': 0.30; 'does': 0.32; 'break': 0.32; 'totally': 0.32; 'there': 0.33; 'header:User-Agent:1': 0.33; 'header:X-Complaints- To:1': 0.34; 'hi,': 0.34; 'running': 0.34; 'then.': 0.34; 'to:addr :python-list': 0.35; 'things': 0.35; 'question': 0.36; 'received:org': 0.36; 'issue': 0.37; 'but': 0.37; 'using': 0.37; 'some': 0.38; 'strong': 0.39; 'to:addr:python.org': 0.40; 'more': 0.61; 'course,': 0.62; 'you.': 0.62; 'connection.': 0.77; 'subject:printing': 0.84
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From Terry Reedy <tjreedy@udel.edu>
Subject Re: unicode printing on Windows
Date Thu, 09 Feb 2012 13:21:53 -0500
References <4f625c3f-77b0-410a-ad63-4acd1a6f1f44@hs8g2000vbb.googlegroups.com>
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding 7bit
X-Gmane-NNTP-Posting-Host pool-74-109-121-73.phlapa.fios.verizon.net
User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:8.0) Gecko/20111105 Thunderbird/8.0
In-Reply-To <4f625c3f-77b0-410a-ad63-4acd1a6f1f44@hs8g2000vbb.googlegroups.com>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.5601.1328811743.27778.python-list@python.org> (permalink)
Lines 22
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1328811743 news.xs4all.nl 6872 [2001:888:2000:d::a6]:44868
X-Complaints-To abuse@xs4all.nl
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:20092

Show key headers only | View raw


On 2/9/2012 5:46 AM, BlueBird wrote:
> Hi,
>
> The question is not totally related to Python but there is a strong
> connection. Everytime that I try to debug some python programs under
> Windows, I encounter the issue that things printed on the console
> simply break the program because :
> 1. My windows console does not support UTF8

The IDLE shell (now) is friendlier to unicode, supporting the entire 
BMP. So you may have more success loading into an IDLE editor and 
running from there with F5. Or perhaps execfile in the shell (I never 
tried this). Of course, import and pdb in the shell work. This all 
depends on what 'debugging' means to you.

> Important information : I am using Python 2.5

I don't know if IDLE was different then.

-- 
Terry Jan Reedy

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

unicode printing on Windows BlueBird <phil@freehackers.org> - 2012-02-09 02:46 -0800
  Re: unicode printing on Windows Andrew Berg <bahamutzero8825@gmail.com> - 2012-02-09 05:19 -0600
  Re: unicode printing on Windows Terry Reedy <tjreedy@udel.edu> - 2012-02-09 13:21 -0500

csiph-web