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


Groups > comp.lang.python > #6688

Re: python in school notebooks/laptops

From Terry Reedy <tjreedy@udel.edu>
Subject Re: python in school notebooks/laptops
Date 2011-05-30 21:12 -0400
References <BANLkTi=ZGQMDvAxHc5mH_5xyHEEn7zg72w@mail.gmail.com> <mailman.2261.1306753758.9059.python-list@python.org> <2edff4f4-64db-4f39-b822-6f8d2c41eddd@h12g2000pro.googlegroups.com> <4de416eb$0$49174$e4fe514c@news.xs4all.nl>
Newsgroups comp.lang.python
Message-ID <mailman.2283.1306804377.9059.python-list@python.org> (permalink)

Show all headers | View raw


On 5/30/2011 6:15 PM, Irmen de Jong wrote:

>> Do you mean one of these os's, where Python (2) is not
>> working properly because the *defaultencoding* is set
>> to utf-8?

> Huh? On all of my machines, including windows and Ubuntu 11.04, sys.getdefaultencoding()
> returns 'ascii'.

For me, WINXP, 2.7
 >>> sys.getdefaultencoding()
'ascii'

winxp, 3.2:
 >>> sys.getdefaultencoding()
'utf-8'

Both are what one would want.

-- 
Terry Jan Reedy

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


Thread

Re: python in school notebooks/laptops hackingKK <hackingkk@gmail.com> - 2011-05-30 16:39 +0530
  Re: python in school notebooks/laptops jmfauth <wxjmfauth@gmail.com> - 2011-05-30 07:30 -0700
    Re: python in school notebooks/laptops Irmen de Jong <irmen.NOSPAM@xs4all.nl> - 2011-05-31 00:15 +0200
      Re: python in school notebooks/laptops Terry Reedy <tjreedy@udel.edu> - 2011-05-30 21:12 -0400

csiph-web