From: David W. <dav...@do...> - 2001-07-02 13:04:30
|
Penn, 1) Does it work for Netscape (or some other browser than IE)? If it does, it's not a server-side problem. 2) Do you have the proper fonts installed? (Remember difference between traditional and simplified Chinese.) 3) In a past project I did with SSL Apache hitting WebLogic 5.1 sp6, we had to support multiple languages, including English, French,Spanish, Portuguese, German, Russian, Japanese and Simplified Chinese. We decided the best way to go was UTF-8. It worked great for various levels of both Netscape and IE. Three things were key, though: 1) Setting the content-type and encoding had to happen before anything. We used a Servlet to RequestDispatch to the JSPs, so to be anal we set the header there AND in the JSPs, AND in the Meta-tags. 2) Obviously, the database needed to be created in UTF-8 for all data that would be splatted back out on the page. 3) Even our static pages had to be defined UTF-8. For example, there was a bug with Netscape where if the index page of the site specified (or defaulted to) anything besides UTF-8, Netscape would cache that setting for that domain, and would ignore anything else specified later on. Is UTF-? an option for you to use? David -- Penn wrote: > Tried.... > the encoding was set correctly but the Chiness charecters displayed was > incorrect, i got rubbish displayed... > the server seems like encode the data b4 it send to me. > > any idea ???? > > Penn > > -----Original Message----- > From: jbo...@li... > [mailto:jbo...@li...]On Behalf Of David Ward > Sent: Friday, June 29, 2001 9:46 PM > To: jbo...@li... > Subject: Re: [JBoss-user] jBoss 2.2.2 does not set the encoding format > for IE5.5 > > > Penn, > > Try adding: > > <%@ page contentType="text/html; charset=Big5" %> > > as the *very first line* of your jsp. What is the ISO code for Big5? > (You might want to use that instead, though not related to your problem) > > Hope this helps, > David > > -- > > Penn wrote: > > >>Hi, >> >>I found out that jBoss 2.2.2 with Tomcat3.2.2 have problem on setting IE's >>encoding format >> >>i have a jsp file that set the meta tag >><meta http-equiv="Content-Type" content="text/html; charset=big5"> >> >>when i load the jsp, the encoding format of IE was not set to Big5 >> >>if i change the file extension from .jsp to .html >>the encoding format of IE will change to Big5 >> >>i don't have this problem on jBoss2.1 with Tomcat 3.2.1 >> >> >>seems like Tomcat's problem ???? >> >>any suggestion >> >>tia >> >>Penn >> >> >>_______________________________________________ >>JBoss-user mailing list >>JBo...@li... >>http://lists.sourceforge.net/lists/listinfo/jboss-user >> >> > > > > _______________________________________________ > JBoss-user mailing list > JBo...@li... > http://lists.sourceforge.net/lists/listinfo/jboss-user > > > _______________________________________________ > JBoss-user mailing list > JBo...@li... > http://lists.sourceforge.net/lists/listinfo/jboss-user > -- ----------------------------------------------------------------------- David Ward dav...@do... Senior Software Engineer http://www.dotech.com Distributed Object Technologies, Inc. 716-381-8320 (phone) 500 Linden Oaks, Rochester, NY 14625 716-381-0598 (fax) |