Bug of search
Author
Zhou Renjian
Create@
2004-12-26 14:04
For example searching "守株待兔"
In IE, the URL will be http://www.whizzideas.com/whizznotes/search?query=%CA%D8%D6%EA%B4%FD%CD%C3, while in Mozilla, it will be http://www.whizzideas.com/whizznotes/search?query=%E5%AE%88%E6%A0%AA%E5%BE%85%E5%85%94, in which the Chinese charactors are wrong!
As I use
String queryWords = new String(request.getParameter("query").getBytes("iso-8859-1"), "gb2312");
in the Servlet, but Mozilla's encoding is different.