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


Groups > comp.lang.python > #112301

Re: print() function with encoding= and errors= parameters?

Path csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail
From Malcolm Greene <python@bdurham.com>
Newsgroups comp.lang.python
Subject Re: print() function with encoding= and errors= parameters?
Date Wed, 03 Aug 2016 15:29:53 -0400
Lines 9
Message-ID <mailman.153.1470252597.6033.python-list@python.org> (permalink)
References <1470227371.397715.684773553.140807A6@webmail.messagingengine.com> <1470233112.2667238.684861393.67022A98@webmail.messagingengine.com> <nnt1fv$9en$1@blaine.gmane.org> <1470238535.436743.684955321.4B7A4C81@webmail.messagingengine.com> <CACL+1auHYrLRJ6q2gBvG9ptAmByVyU775jeUxR=5MpB6cKg5EA@mail.gmail.com> <1470252593.485976.685203633.54D01262@webmail.messagingengine.com>
Mime-Version 1.0
Content-Type text/plain
Content-Transfer-Encoding 7bit
X-Trace news.uni-berlin.de mk+/mh7uewTS7c5iotnGvAYpoXkM5A0i7cJI7mLwc7XQ==
Return-Path <python@bdurham.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.004
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'url:pypi': 0.03; 'pypi': 0.07; 'received:internal': 0.09; 'from:addr:python': 0.16; 'malcolm': 0.16; 'message-id:@webmail.messagingengine.com': 0.16; 'received:10.202': 0.16; 'received:10.202.2': 0.16; 'received:66.111': 0.16; 'received:66.111.4': 0.16; 'received:io': 0.16; 'received:messagingengine.com': 0.16; 'received:psf.io': 0.16; 'subject:parameters': 0.16; 'windows': 0.20; 'to:2**1': 0.21; 'header:In-Reply-To:1': 0.24; 'summary': 0.29; 'url:python': 0.33; 'could': 0.35; 'unicode': 0.35; 'url:org': 0.36; 'to:addr :python-list': 0.36; 'subject:?': 0.36; 'subject:: ': 0.37; 'received:10': 0.37; 'associated': 0.38; 'received:66': 0.38; 'thank': 0.38; 'shared': 0.38; 'to:addr:python.org': 0.40; 'subject:with': 0.40; 'skip:u 10': 0.61; 'header:Message-Id:1': 0.61
DKIM-Signature v=1; a=rsa-sha1; c=relaxed/relaxed; d=bdurham.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=mesmtp; bh=/VArzAgrZYdpVDPsIEKrcdU3H/w=; b=P8yqbi Gu3ciJWhX0uGKFUJSbpYfv2dA3mxzp83UD68lnftPNXSdyEUtfld1j/RGU2sX/Rq YYtDM8VaFclI0B78UIIjvxwPoWD5BKrFz8sNZds5rsJt4LMjBseS9xqArhha0Qj5 oRn1fol1dC4AzOVcL4JeRbxNkeOqoWI+tsxps=
DKIM-Signature v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=/VArzAgrZYdpVDP sIEKrcdU3H/w=; b=BoOYjftcLB3txK6qeCFhgwB8sC3DNkJlyhFUyRvjWjYG9dx ED+mGUQ7w996VqNj33auuRp8NvuNwUD+WQUiV2z4kiYlwIX3+hAXMi5d3M5psCsZ p9vrCpuc7K8he5ijym4S2ccBolzYWwGx6/voi9RSjoFNaB+SEPFp/A5/pFiU=
X-Sasl-Enc GctMEt6GBkhc/IU4hQLJHmWsxmT3R9XmBG2UbRsY9Leu 1470252593
X-Mailer MessagingEngine.com Webmail Interface - ajax-25d422ed
In-Reply-To <CACL+1auHYrLRJ6q2gBvG9ptAmByVyU775jeUxR=5MpB6cKg5EA@mail.gmail.com>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.22
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://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 <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID <1470252593.485976.685203633.54D01262@webmail.messagingengine.com>
X-Mailman-Original-References <1470227371.397715.684773553.140807A6@webmail.messagingengine.com> <1470233112.2667238.684861393.67022A98@webmail.messagingengine.com> <nnt1fv$9en$1@blaine.gmane.org> <1470238535.436743.684955321.4B7A4C81@webmail.messagingengine.com> <CACL+1auHYrLRJ6q2gBvG9ptAmByVyU775jeUxR=5MpB6cKg5EA@mail.gmail.com>
Xref csiph.com comp.lang.python:112301

Show key headers only | View raw


> You could use win_unicode_console enabled in sitecustomize or usercustomize.
> https://pypi.python.org/pypi/win_unicode_console

The pypi link you shared has an excellent summary of the issues
associated when working Unicode from the Windows terminal.

Thank you Eryk.

Malcolm

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


Thread

Re: print() function with encoding= and errors= parameters? Malcolm Greene <python@bdurham.com> - 2016-08-03 15:29 -0400

csiph-web