From: Michael S. <sta...@us...> - 2005-09-07 15:52:08
|
Update of /cvsroot/archive-access/archive-access/projects/nutch/src/web In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6397/src/web Modified Files: search.jsp Log Message: Fix for '[ 1281697 ] searching czech words not working'. Patch from Lukas. * src/web/search.jsp Convert parameter string to utf-8. Index: search.jsp =================================================================== RCS file: /cvsroot/archive-access/archive-access/projects/nutch/src/web/search.jsp,v retrieving revision 1.18 retrieving revision 1.19 diff -C2 -d -r1.18 -r1.19 *** search.jsp 17 Aug 2005 21:47:24 -0000 1.18 --- search.jsp 7 Sep 2005 15:51:59 -0000 1.19 *************** *** 35,38 **** --- 35,42 ---- queryString = ""; } + // Why do we have to do this? We've set the character encoding for the + // request above with request.setCharacterEncoding? But Lukas and Oskar + // say this works. + queryString = new String(queryString.getBytes("ISO-8859-1"), "UTF-8"); String htmlQueryString = Entities.encode(queryString); |