Eclipse3.0.1 + MyEclipse3.8.2 and Tomcat5 solve the problem of Chinese
Hibernate recently to study the reasons and decided to JSF development environment eclipse3.0.1 and myeclipse3.8.2 upgrade to the final version, the original used eclipse3.0 + myeclipse3.8.0beta2 I have not been satisfied with the needs of the (eclipse other needs of the Chinese package eclipse version is 3.0.1), but then the problem has come, and the original document is not a good use JSP, the Chinese are all garbled! View the eclipse to myeclipse options inside and the contents of the original and found a lot of changes, a one inspection and modification, the problem remains the same, to amend the code and settings are adapted to local GBK, but problems remain , how do? Occasionally discovered open a Chinese with the JSP document does not issue and carefully compared to the normal and abnormal JSP, found that the most suspicious is <% @ page contentType = "text / html; charset = GB2312"%> position, the normal in the first row in the paper, rather than the normal is the first line of JSP-Import Declaration, to amend, archiving, suggesting that encoding GB2312 unable to convert certain characters, not abandon, with editplus open amended, preservation, and then open the eclipse, good! This is the end of the issue? Not yet. I index.jsp and header.jsp there are Chinese, and contained header.jsp index.jsp previous experience tells me there is no header.jsp coding statement, which under how do? Operation see results? Header.jsp hash of the contents inside! No way, in a statement header.jsp inside and coding, running, normal! This is how the case? View Internet, the original from the beginning all the tomcat5 jsp code can be added the statement, the only truth!
More technical articles, please visit my BLOG: uncertainty
Tags: java Chinese






