write Unicode to sys.out.write without access to sitecustomize.py

2009-08-28 Thread Rob Knop
I would like to tell the system that it's OK to write Unicode to sys.out and sys.err. However, I'm doing this in a CGI script where I don't have access to the system directories, and as such can't use sys.setdefaultencoding in sitecustomize.py. Is there a way to make this happen? -- --Rob

Re: write Unicode to sys.out.write without access to sitecustomize.py

2009-08-28 Thread exarkun
On 02:51 pm, rk...@pobox.com wrote: I would like to tell the system that it's OK to write Unicode to sys.out and sys.err. However, I'm doing this in a CGI script where I don't have access to the system directories, and as such can't use sys.setdefaultencoding in sitecustomize.py. Is there