Re: Converting datetime.ctime() values to Unicode

2010-05-17 Thread Jerry Hill
On Mon, May 17, 2010 at 2:14 PM, wrote: > In researching a solution, I believe locale.getpreferredencoding() might > be a better choice (than locale.getdefaultlocale()[ 1 ]) for determining > a system's default encoding? I haven't used the locale module a lot, but it seems to me that if you're s

Re: Converting datetime.ctime() values to Unicode

2010-05-17 Thread python
In researching a solution, I believe locale.getpreferredencoding() might be a better choice (than locale.getdefaultlocale()[ 1 ]) for determining a system's default encoding? In other words change: >>> codePage = locale.getdefaultlocale()[ 1 ] To this: >>> codePage = locale.getpreferredencoding