UnicodeDecodeError

Zope Version (Zope 2.9.6-final, python 2.4.3, linux2)
Python Version 2.4.3 (#3, Jun 23 2007, 15:33:52) [GCC 3.3.6 release (Vine Linux 3.3.6-0vl7)]
System Platform linux2
SOFTWARE_HOME /opt/Zope-2.9/lib/python
ZOPE_HOME /opt/Zope-2.9
INSTANCE_HOME /var/lib/zope
CLIENT_HOME /var/lib/zope/var
Network Services ZServer.HTTPServer.zhttp_server (Port: 8080)
タイトルを日本語保存したときに下記ERROR発生。
UnicodeDecodeError
/usr/local/lib/python2.4/site.py の
encoding = “ascii”を
encoding = “utf-8″に変更して zopectl restart
日本語もOK
“””Set the string encoding used by the Unicode implementation. The
default is ‘ascii’, but if you’re willing to experiment, you can
change this.”””
encoding = “utf-8” # Default value set by _PyUnicode_Init()
if 0:
# Enable to support locale aware default string encodings.
import locale
loc = locale.getdefaultlocale()
if loc[1]:

コメントを残す

メールアドレスが公開されることはありません。 が付いている欄は必須項目です