> Are there any command line option for telling python what encoding to
> use for stdout?

Not a command line option. However, you can wrap sys.stdout with a
stream that automatically performs an encoding. If all your print
statements output Unicode strings, you can do

sys.stdout = codecs.getwriter("utf-8")(sys.stdout)

HTH,
Martin
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to