會員註冊 /
登入
|
電腦版
|
發表人:
andowson, 七段學員
2007-01-03 20:46:48
修改WEB-INF/config/jforum-custom.conf,加上
search.word.matching = like
這樣會覆寫掉SystemGlobals.properties裡面原來的設定
search.word.matching = equals
參考網址:http://www.jforum.net/posts/list/2558.page
發表人:
andowson, 七段學員
2007-03-25 00:28:07
補充說明,有關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編碼兩次)
會員註冊 /
登入
|
電腦版
|