[JEE] JSP Encoding (Solved)
I am writing a web application to fetch HTML codes from another web page, extract useful data and display it on JSP. As the source web page contains characters in Big5 encoding, I put the following tag in JSP:- <meta http-equiv="Content-Type" content="text/html; charset=Big5" />
複製代碼 However, the browser still display JSP in ISO-8859-1 encoding (Western). I then add the following code in JSP:- <%@page contentType="text/html;charset=big5"%>
複製代碼 This time, the browser tries to display JSP in Big5 encoding, but the characters still cannot be read.

I also tried to put the JSP page directive tag only, but it doesn't work (just like the above image).
Is it due to the encoding of Java compiler? Or other reasons?
Please help and thank you.
[ 本帖最後由 GraphiteCube 於 2009-6-25 22:56 編輯 ] |
|
|