Chinese (Japanese) problem in WebLogic 7.0 (reference)

xiaoxiao2021-03-06  27

To reply, click:

http://dev2dev.bea.com.cn/bbs/dispbbs.jsp?tid=633&id=1

Reply: 14 A total of: 2 [1 2 Next Page]

Aegean Post quantity: 27 levels: novice road registration time: 2002 login number: 34 times

WEBLOGIC7.0 Chinese (Japanese) Problem Time: 2002-08-23 11:39 My Program Operation Oracle Database via JSP Servlet, using Oracle's own drive (Classes12.zip, 8.1.7). Under WebLogic 6.1, there is no problem in Japanese in Chinese. It is garbled in WebLogic 7.0. It is called 9i driver or messy, how to solve it?

Reply to send short information

YHUANG Post quantity: 57 levels: newbie road registration time: 2002 Login number: 27 times

Re: WebLogic 7.0 Chinese (Japanese) Problem Time: 2002-08-23 12:43 For garbled problems, the most fundamentally need to know in that step (Client -> Servlet / JSP (Other Components) -> DB -> (Other Components) Servlet / JSP -> Client is chaos. 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> compilersupportsencoding true Encoding GBK to 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: In order to make the browser correctly display Chinese correctly, add: Reply Send Short Information

AirWing Posted Quantity: 14 Level: Novice Road Registration Time: 2002 Login Number: 13 times

Re: WebLogic 7.0 Chinese (Japanese) Problem Time: 2002-08-23 14:16 Situation The coding method is two and the case. When I encountered garbled, I didn't have a good time. I didn't have enough. I didn't have enough to do projects several times. I had a big life, and the experience is summed up. The experience is mainly, from the client language area Set -Weblogic Language Area Set -Java Compile Options - Database Language Region Settings, these settings are exactly the same, you can see Chinese correctly. Client Language Area Settings: The client mainly uses the Windows platform, which should generally be no problem. I only have seen it in someone else's case settings, if you are actually exhausted, consider this. WebLogic location system language area setting: If it is Chinese Windows, there should be no problem. If you are UNIX / Linux, you have to add lang = zh, specific language, to see your operating system in the Profile of WebLogic users. Note that if you are SU switching users, be sure to - xxx, or there will be garbled. Java compile option: I usually add, use Ant in my system, I will add Encoding in Build.xml, generally indicate Javac -Encoding GB2312. Database Language Environment Settings: This is not particularly familiar, usually you can insert Chinese records into the database with PL / SQL, then you don't expect to accuse the database. Finally, give a life-saving trick, Request.SetCharateRencoding ("GB2312"). Try this when you are nothing. But this should be cautious, if it performs more than 1 time, there will be garbled. And do not necessarily adapt to all platform environments, think about your system written a bunch of JSP, and the result is not installed in the customer, do you want to modify all pages? A little experience, wrong place, welcome to advise the discussion to send short information

CHINAWHITE Posted Quantity: 18 Level: Novice Road Registration Time: 2002 Login Number: 19 times

Re: WebLogic7.0 Chinese (Japanese) Problem Posted: 2002-08-23 16:49 On Platform7.0 I also have a Chinese problem never solved, that is, get browser submission (POST mode and get mode) The data is always incorrect, regardless of the direct output to the JSP page, or inserted into the database from the database. I have set Encoding = GB2312 in JSP Descriptor in Web App Descriptor, and the result is a "first in WebLogic.xml", "encoding GB2312 but still does not work. (Requuest.setCharacterencoding is OK, but I always don't use the program to manage this matter) the problem of two places, one is the jsp display Chinese, just set up ContentType, two is the database Chinese problem in the connection pool properties There is a weblogic.codeset = GB2312 in Riga. This article is modified by ChinaWhite at 2002/08/23 16:52:05!

Reply to send short information

CHINAWHITE Posted Quantity: 18 Level: Novice Road Registration Time: 2002 Login Number: 19 times

Re: WebLogic 7.0 Chinese (Japanese) Problem Published: 2002-08-23 17:19 Just finally smashed the meaning of "Resource Path", Form submitted Chinese problem can be solved, set "Web Application Deployment Descriptor", Add a Charset Params, Input Charset Descriptor, Resource Path = "/ *" Java Charset Name = "GB2312" Don't forget to PERSIST. The result of the operation is to add a paragraph in WebLogic.xml: / * GB2312 It can also be modified directly to WebLogic.xml. But recommending or use console to change.

Reply to send short information

YHUANG Post quantity: 57 levels: newbie road registration time: 2002 Login number: 27 times

Re: WebLogic7.0 Chinese (Japanese) Problem Time Published: 2002-08-23 17:33 When your WebLogic running environment is Western, you must do: Compile the code, add the eNCoding GBK option to specify the JSP compile time. The Encoding option is also the use of JSP's PAGE command to specify Content-Type. However, most of the cases are not necessarily done, because WLS can get the encoding type that should be used from the encoding compiled by JSP. Sorry, there is something to go out, after the post

Reply to send short information

Aegean Post quantity: 27 levels: novice road registration time: 2002 login number: 34 times

Re: WebLogic7.0 Chinese (Japanese) Problem Time: 2002-08-23 19:51 So how do you write to Japanese, change GBK to Shift_JIS? I am Japanese 2000, the driver used is Classes12.zip This article was modified by Aegean at 2002/08/23 20:14:28!

Reply to send short information

ONS Posted Quantity: 3 Level: Novice Road Registration Time: 2002 Login Number: 5 times

Re: WebLogic7.0 Chinese (Japanese) Problem Time: 2002-08-24 01:56 Request.SetCharacteRencoding ("GB2312") before reading the request parameters in servlet2.3. For WebLogic6.1SP2 and it needs. This article is modified in 2002/08/24 02:00:58!

Reply to send short information

Aegean Post quantity: 27 levels: novice road registration time: 2002 login number: 34 times

Thank you all the time: 2002-08-26 11:48 Japanese has no problem, Chinese has not tested, it is estimated that will be OK, thank you first.

Reply to send short information

AirWing Posted Quantity: 14 Level: Novice Road Registration Time: 2002 Login Number: 13 times

Re: WebLogic 7.0 Chinese (Japanese) Problem Time: 2002-08-26 11:53 Is it useful to resource PATH? I have not succeeded.

Reply to send short information

YWGAN Posted Quantity: 9 Level: Novice Road Registration Time: Octobo 2002 Login: 4 times

Re: WebLogic7.0 Chinese (Japanese) Problem Time: 2002-08-26 16:07 When getting the Chinese submitted, there is also a way new string (Request.GetParameter). GetBytes ("ISO -8859-1 ") This can get the correct Unicode string to reply to send short information

ZMRLJL Posted Quantity: 19 Level: Novice Road Registration Time: October 2002 Number of Login: 17 times

Re: WebLogic7.0 Chinese (Japanese) Problem Time: 2002-08-29 10:33 Showing Chinese paths in WebLogic 7.0 is also garbled, how to solve it? ? ? ?

Reply to send short information

Lee3star Posted Quantity: 3 Level: Novice Road Registration Time: 2002 Subscription Number: 2 times

Re: WebLogic7.0 Chinese (Japanese) Problem Time: 2002-09-17 15:49 My database is Oracle, the character set used by the server is American_America.us7ascii, and the NLS_LANG in my local Oracle is also used. This is this, so the SQL_PLUS is displayed, inserting Chinese is correct. But the Chinese can't use the Database Pilot display table data with JBuilder yourself. I am using WebLogic7, I have used the way upstairs. Or not. One thing is not very clear, what is the difference between GB2312 and GBK? I am using all GB2312. It seems that the problem is still when it is read from the database.

Reply to send short information

Lee3star Posted Quantity: 3 Level: Novice Road Registration Time: 2002 Subscription Number: 2 times

Re: WebLogic 7.0 Chinese (Japanese) Problem Time: 2002-09-17 16:00 At the jdbc.pdf in WebLogic7, I found this sentence: if Your NLS_LANG Environment Variable Is Not Set, Of IT IS Set to either US7ASCII or WE8ISO8859-1, the driver always operates in 8859-1. if the NLS_LANG environment variable is set to a different value than the codeset used by the database, the Oracle Thin driver and the WebLogic jDriver for Oracle use the client codeset Wen Writing to the database. But now is the character set used in my database is English. I have seen it with SELECT * FROM V $ NLS_PARAMETERS statement. It seems that there is no way to set this like when connecting through JDBC.

Reply to send short information

Worldheart Posted Quantity: 96 Level: Novice Road Registration Time: 2002 Login Number: 19 times

RE: WebLogic7.0 Chinese (Japanese) Problem Time: 2002-09-26 14:16 Studying ........

Reply to send short information

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

New Post(0)