[Python-Dev] Encodings

Guido van Rossum guido@beopen.com
Sat, 08 Jul 2000 18:24:16 -0500


> > I never dreamed that you could actually find out the name of the
> > character set given the locale!
> 
> never underestimate the malbot.
> 
> (btw, this magic now works on windows too! ;-)
> 
> >>> import locale
> >>> print locale.getdefaultlocale()
> ('sv_SE', 'cp1252') 

That seems actually pretty useful for explicit conversions!

--Guido van Rossum (home page: http://dinsdale.python.org/~guido/)