H
Helmut Jarausch
Hi,
do I miss something (I do hope so) or is switching to Python3
really hard for Latin1-users?
My simplest hello world script - which uses a few German
umlaut characters - doesn't look very intuitive.
I have to set an internal property (with leading underscore)
for each output file I'm using - right?
#!/usr/local/bin/python3.0
# _*_ coding: latin1 _*_
import sys
# the following call doesn't do the job
# sys.setfilesystemencoding('latin1')
# but this ugly one (to be done for each output file)
sys.stdout._encoding='latin1'
print("Hallo, Süßes Python")
Thanks for any enlightening on that subject,
Helmut.
--
Helmut Jarausch
Lehrstuhl fuer Numerische Mathematik
RWTH - Aachen University
D 52056 Aachen, Germany
do I miss something (I do hope so) or is switching to Python3
really hard for Latin1-users?
My simplest hello world script - which uses a few German
umlaut characters - doesn't look very intuitive.
I have to set an internal property (with leading underscore)
for each output file I'm using - right?
#!/usr/local/bin/python3.0
# _*_ coding: latin1 _*_
import sys
# the following call doesn't do the job
# sys.setfilesystemencoding('latin1')
# but this ugly one (to be done for each output file)
sys.stdout._encoding='latin1'
print("Hallo, Süßes Python")
Thanks for any enlightening on that subject,
Helmut.
--
Helmut Jarausch
Lehrstuhl fuer Numerische Mathematik
RWTH - Aachen University
D 52056 Aachen, Germany