Ned Deily <n...@acm.org> writes: > $ python2.6 -c 'import sys; print sys.stdout.encoding, \ > sys.stdout.isatty()' > UTF-8 True > $ python2.6 -c 'import sys; print sys.stdout.encoding, \ > sys.stdout.isatty()' > foo ; cat foo > None False
So shouldn't the second case also detect UTF-8? The filesystem knows it's UTF-8, the shell knows it too. Why doesn't Python know it? -- \ “When I was born I was so surprised I couldn't talk for a year | `\ and a half.” —Gracie Allen | _o__) | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list