補充說明,有關encoding部分的設定參數如下:
jforum-custom.conf:
dbencoding=utf-8
encoding=UTF-8
SystemGlobals.properties:
encoding = UTF-8
mail.template.encoding = UTF-8
default.container.encoding = ISO-8859-1
Database在create時選擇unicode或UTF-8編碼,以PostgreSQL為例,
su - postgres
psql -c "create user jforum createdb;" template1
psql -c "create database jforum with encoding 'unicode';" -U jforum template1
psql -c "alter user jforum nocreatedb;" template1
psql -c "alter user jforum with encrypted password 'jforum';" template1
exit
Apache的httpd.conf:
將AddDefaultCharset註解起來
#AddDefaultCharset Big5
注意:
Tomcat的server.xml:
<Connector>不能加URIEncoding="UTF-8",否則中文搜尋功能會失效!(等於用UTF-8編碼兩次)
|