修正nutch (0.7 release) 的demo 中的几个小bug。
- bugs relative to i18n support
bugs in $NUTCH_WEBAPP/${language}/search.html
22+ <base href="${base}/zh/">
- bugs relative to deprecated URLEncoder.encode(String s)
bugs in $NUTCH_WEBAPP/search.jsp:
222-(<a href="../explain.jsp?<%=id%>&query=<%=URLEncoder.encode(queryString)%>"><i18n:message key="explain"/></a>)
222+(<a href="../explain.jsp?<%=id%>&query=<%=URLEncoder.encode(queryString, "UTF-8")%>"><i18n:message key="explain"/></a>)
226- "query="+URLEncoder.encode("site:"+hit.getDedupValue()+" "+queryString)
226+ "query="+URLEncoder.encode("site:"+hit.getDedupValue()+" "+queryString, "UTF-8")