> > 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/)