locale.CODESET / different in python shell and scripts
Nuff Said
nuffsaid at phreaker.net
Mon Apr 26 19:23:57 EDT 2004
When I type the following code in the interactive python shell,
I get 'UTF-8'; but if I put the code into a Python script and
run the script - in the same terminal on my Linux box in which
I opened the python shell before -, I get 'ANSI_X3.4-1968'.
How does that come?
Thanks in advance for your answers! Nuff.
The Code:
import locale
print locale.nl_langinfo(locale.CODESET)
More information about the Python-list
mailing list