python in school notebooks/laptops
Terry Reedy
tjreedy at udel.edu
Mon May 30 21:12:44 EDT 2011
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
More information about the Python-list
mailing list