Python STILL prints the wrong international letters

Bruce Sass bsass at freenet.edmonton.ab.ca
Sat May 19 15:11:41 EDT 2001


On 19 May 2001, David LeBlanc wrote:
<...>
> I get what seems to be an entirely bogus number for the cp on win NT
> 4.0sp6a US version on both console and window (idle):
> >>> import locale
> >>> locale.getdefaultlocale()
> ('en_US', 'cp28593')

I don't think locale is really useful unless you are setting it
yourself, or require that your users have their system setup properly
beforehand.  I mean, what can a program do when faced with...

>>> import locale
>>> locale.getdefaultlocale()
(None, None)


- Bruce





More information about the Python-list mailing list