Chinese perfect solution supported by BEA customers

zhaozj2021-02-16  142

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: section of WebLogic.xml file Add compilersupportsencoding True Encoding GBK This problem can be resolved.

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 WebLogic.httpd.inputcharset. /* GBK solves this problem.

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!

转载请注明原文地址:https://www.9cbs.com/read-8109.html

New Post(0)