WebLogic Chinese Problem

xiaoxiao2021-03-06  42

For garbled problems, the most fundamental thing is to know exactly what is the step (Client -> Servlet / JSP (Other Components) -> DB -> (Other Components) Servlet / JSP -> Client) of.

Below is a summary of our engineers to common Chinese issues for reference: case 1: Chinese prompt information in the jsp file does not display the solution correctly: Add <% @ Page ContentType = "in the JSP file:" TEXT / HTML; charset = GBK "%> can solve this problem 2: When the JSP file contains Chinese prompt information, you cannot correctly compile the solution: Add section of WebLogic.xml file Add < Param-name> CompileCommand javac compilersupportsencoding True Encoding GBK < / JSP-Descriptor> Solve this problem. Situation 3: When the Chinese retrieved from the database is displayed in this case, in this case, if the database uses the Chinese character set, and use Type 2 JDBC Driver, for WebLogic, use it provides When OCI Driver, the properties of WebLogic.codeset = GBK can be added to solve this problem 4: When Chinese is transferred between JSP files, if you don't pass the Chinese data correctly, you can add < Param-name> WebLogic.httpd.inputcharset ./* GBK can solve this problem. Situation 5: To make the browser correctly display Chinese, add:

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

New Post(0)