Personal tools
You are here: Home なごぶろ zope2.9.0のdefault-zpublisher-encoding
Document Actions

zope2.9.0のdefault-zpublisher-encoding

zope2.9.0ではデフォルトでiso-8859-15エンコーディングで出力されるみたい。そんなの迷惑じゃんということで、UTF-8にしたく、etc/zope.confの該当部分を変更してみる。

このディレクティブですね。

# Directive: default_zpublisher_encoding
#
# Description:
#     This controls what character set is used to encode unicode
#     data that reaches ZPublisher without any other specified encoding.
#
# Default: iso-8859-15
#
# Example:
#
#    default_zpublisher_encoding utf-8

で、リスタートすると…

"default_zpublisher_encoding' is not a known key name"

とか吐くわけです。

そこでzope-2.9.0\Dependencies\Zope2-Zope-2.9.0\Zope2\Startup\zopeschema.xmlを見てみると

key name="default-zpublisher-encoding" datatype=".default_zpublisher_encoding"

ハイフンだしwwwwwwwうぇwww

というわけでzope.confに

default-zpublisher-encoding utf-8

としてやりました(´ω`)

Category(s)
Zope Zope
The URL to Trackback this entry is:
http://nagosui.org/Nagosui/COREBlog2/default-zpublisher-encoding/tbping
Add comment

You can add a comment by filling out the form below. Plain text formatting.

(Required)
(Required)
(Required)
(Required)
Enter the word