Re: Lookup encoding aliases in Python 2.4

2007-07-17 Thread Omari Norman
Forget about that--I then found /usr/lib/python2.5/encodings/aliases.py, which is also in Python 2.4. Sorry for the silly question! On Tue, Jul 17, 2007 at 07:04:59PM -0400, Omari Norman wrote: > My program creates new XML files (not through the DOM, but just by > simple file.write calls.) It woul

Lookup encoding aliases in Python 2.4

2007-07-17 Thread Omari Norman
My program creates new XML files (not through the DOM, but just by simple file.write calls.) It would be nice if said files would be in the default system encoding. So in Python 2.5 I use ENCODING = codecs.lookup(locale.getdefaultlocale()[1]).name locale.getdefaultlocale()[1] sometimes returns a