Antoine Pitrou wrote:

>  - seamless unicode support: how about making the default Python
> charset utf-8 instead of ascii ? right now, someone (say an American or
> English) who does not design his app with non-ascii characters in mind
> may have a surprise when users enter those characters in customizable
> fields: for example, debug print statements which end up crashing the
> app with an UnicodeException on the user's machine, without even a way
> to diagnose this when the app is a GUI app and stdout is not shown ;))

using a variable-width default encoding will break stuff that expect string
lengths to be constant, or just prefer their character and slice indices to stay
where they are.

defaulting to "replace" (or better, an escaping UnicodeEncodeError handler)
on the standard output channels would be a better idea.

</F> 



_______________________________________________
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