>> The only supported default encodings in Python are:
>>
>>   Python 2.x: ASCII
>>   Python 3.x: UTF-8
>>    
> 
> Is this true?

For 3.x: yes. However, the default encoding is much less relevant in
3.x, since Python will never implicitly use the default encoding, except
when some C module asks for a char*. In particular, ordering between
bytes and unicodes causes a type error always.

> I thought the default encoding in Python 3 was platform
> specific (i.e. cp1252 on Windows).

Not at all. You are confusing this with the IO encoding of text
files, which indeed defaults to the locale encoding (and CP_ACP
on Windows specifically - which may or may not be cp1252).

The default encoding (i.e. the one you could theoretically set
with sys.setdefaultencoding) in 3.x is UTF-8.

Regards,
Martin
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to