python3 - the hardest hello world ever ?
Diez B. Roggisch
deets at nospam.web.de
Wed Oct 15 12:22:04 EDT 2008
Helmut Jarausch wrote:
> Paul Boddie wrote:
>> On 15 Okt, 12:08, Helmut Jarausch <jarau... at igpm.rwth-aachen.de>
>> wrote:
>>> What defines me as latin1-user?
>>
>> What does sys.stdout.encoding say? In Python 2.x, at least, that
>
> It says ansi_x3.4-1968
>
> Where can I change this?
By changing your console's terminal settings. See what
locale -a
outputs.
See this:
(devtools)dir at client8049:~$ locale -a
C
en_AU.utf8
en_BW.utf8
en_CA.utf8
en_DK.utf8
en_GB.utf8
en_HK.utf8
en_IE.utf8
en_IN
en_NZ.utf8
en_PH.utf8
en_SG.utf8
en_US.utf8
en_ZA.utf8
en_ZW.utf8
POSIX
(devtools)dir at client8049:~$ python
Python 2.5.2 (r252:60911, Jul 31 2008, 17:28:52)
[GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
Welcome to rlcompleter2 0.96
for nice experiences hit <tab> multiple times
>>> import sys
>>> sys.stdout.encoding
'UTF-8'
>>>
Diez
More information about the Python-list
mailing list