Situation 1:
The Chinese prompt information in the JSP file does not display the solution correctly: add <% @ page contentType = "text / html; charset = GBK"%> to solve this problem in the JSP file
Situation 2:
When the Chinese prompt information is included in the JSP file, the solution does not correctly compile:
Situation three:
In this case, in this case, if the database uses the Chinese character set and uses Type 2 JDBC Driver, when using the type 2 JDBC Driver, when using the OCI Driver provided , Can add WebLogic.codeset = GBK properties to solve this problem
Situation four:
When Chinese is transferred between JSP files, if Chinese data cannot be passed correctly, you can add
Situation 5:
In order for the browser to display Chinese correctly, add:
After setting the above five methods, your JSP can handle Chinese simply like processing English :) No need to pass any GetBytes conversion!