Message144677
The locale module provides locale.getdefaultlocale and locale.getpreferredencoding. The encodings returned by each are generally subtly different ('ISO8859-1' vs 'ISO-8859-1'), but the difference between these methods is not explained.
A comment by Martin von Löwis from 2003 in http://bugs.python.org/issue813449 indicates that "getdefaultlocale should not be used in new code", if this is really the case then this should be in the docs.
Anyone reading the docs from the top will currently encounter getdefaultlocale first and believe that this is the way to get the encoding. |
|
Date |
User |
Action |
Args |
2011-09-30 08:15:34 | gjb1002 | set | recipients:
+ gjb1002, docs@python |
2011-09-30 08:15:34 | gjb1002 | set | messageid: <1317370534.21.0.426762958064.issue13074@psf.upfronthosting.co.za> |
2011-09-30 08:15:33 | gjb1002 | link | issue13074 messages |
2011-09-30 08:15:32 | gjb1002 | create | |
|