From my first jsp I am selecting a Chinese pdf file and posting the first jsp to the second one. In my second jsp when I am trying to fetch the File Name value from the field with request.getParameter("FileName") but I am getting a different junk value. Though in my first jsp I have set, response.setCharatcerEncoding('UTF-8'). I am working on a windows environemnt and my app/Webserver server is Jboos-tomcat-apache.
UTF-8 can represent all Unicode characters. Including Chinese.
Aman, I don't understand what "posting the first jsp to the second one" means. And you don't say whether the data in the first JSP is correct, or even where it is coming from. An explanation of where this string comes from and how it is transformed on its travels would help.
before you post the form,you should encode the chinese characters into GB2312 or GBK like this " string.getBytes("GBK",UTF-8); " and in your second jsp file,you must encode it again,like this "string.getBytes("UTF-8",GBK) in the end,you should notice the HTML tag <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> it is hard to display correctly,because your page charset=ISO-8859-1