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_langi nfo(locale.CODE SET)
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_langi nfo(locale.CODE SET)
Comment