Hallöchen!
I start a python script with subprocess from another Python script
with
python = subprocess.Pope n(["python", "myscript.p y"],
stdout=subproce ss.PIPE, stderr=subproce ss.PIPE)
However, this child script has sys.stdout.enco ding set to None,
which means that Unicode strings cannot be printed without trouble.
I tried
environment = os.environ
environment["LC_CTYPE"] = environment["LANG"] = "de_DE.UTF-8"
python = subprocess.Pope n(["python", "myscript.p y"],
env = environment,
stdout=subproce ss.PIPE, stderr=subproce ss.PIPE)
for setting it to UTF-8, however, it didn't work. Any idea on how
to achieve this?
Tschö,
Torsten.
--
Torsten Bronger, aquisgrana, europa vetus
Jabber ID: br*****@jabber. org
(See http://ime.webhop.org for ICQ, MSN, etc.)