My project is under eclipse, Tomcat, Spring, Hibernate. In my web app when I try go to enother webPage :
public void onSubmit()
{
String value="Д";
PageParameters pars=new PageParameters();
pars.add("strname", value);
setResponsePage(FilterClient.class, pars);
}
and after geting that parameter :
public FilterClient(final PageParameters parameters) {
String strName="";
if(parameters.containsKey("strname")){
strName=parameters.getString("strname");
}
the value of parameter is
Д instead of Д
Please help me to solve this issue.
You should try to set URIEncoding in Tomcat server.xml configuration file.
http://wiki.apache.org/tomcat/FAQ/CharacterEncoding
Best practice is use only UTF-8 encoding in your application (in database and web-pages).