[opencms-dev] OpenCMS 5.0.1 and Lucene: searching japanese text

Uwe König uwederkoenig at web.de
Fri Apr 1 19:34:00 CEST 2005



Hi Shi Yusen, 

I tried the following code-snippet:

	Analyzer analyzer = new StandardAnalyzer();
	String newquery = QueryParser.parse(query,"", 
		analyzer).toString("");

which transforms my two japanese kanji into the UTF-8 code numbers,
double quoted. But when I use the SearchHelper.doSimpleSearch() with
that parsed querystring, again, nothing is found. 

One more question: Do I have to do something to ensure the browser
knows about the forms encoding? The page encoding is UTF-8. 
Best regards, 

Uwe König 




More information about the opencms-dev mailing list