Hi, everybody,
I find that the search form of STK doesn't work for multi-bytes languages
such as Chinese. When I key in the search string in Chinese, the search result
page shows that the sever doesn't get the string correctlly, it appears as
something I can't read. I search in the mailing list and get the message that
the reason is that the server can't get the string with the correct encoding. I
read the page html source and get the message that it's in utf-8 at the browser
side ,then I change the default encoding of Tomcat to utf-8 by adding a
-Dfile.encoding=utf-8 parameter to the start command magnolia_control.bat, but
it still doesn't work. Any body please give me a hand? Thanks in advance.
BTW: I'v download the analyzer of lucene for Chinese and modified the
repostory's config file(jackrabbit-bundle-derby-search.xml) to use Chinese
analyzer.
......
<!-- <param name="analyzer"
value="org.apache.lucene.analysis.standard.StandardAnalyzer" /> -->
<param name="analyzer"
value="org.apache.lucene.analysis.cn.SmartChineseAnalyzer" />
......
_________________________________________________________________
Messenger10年嘉年华,礼品大奖等你拿!
http://10.msn.com.cn
----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------