web.pyで2byteコード入力したいがためにsitecustomize.pyを変更した
Posted on Mon, 02 Mar 2009 01:57:36 +0900
なんか不具合見えたら、そっこもどそっと。
$ diff -u /etc/python2.5/sitecustomize.py.org /etc/python2.5/sitecustomize.py
--- /etc/python2.5/sitecustomize.py.org 2008-04-21 21:27:54.000000000 +0900
+++ /etc/python2.5/sitecustomize.py 2009-03-01 20:22:14.000000000 +0900
@@ -5,3 +5,5 @@
pass
else:
apport_python_hook.install()
+import sys
+sys.setdefaultencoding('utf-8')