Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 42748 invoked from network); 20 Dec 2002 10:44:25 -0000 Received: from exchange.sun.com (HELO nagoya.betaversion.org) (192.18.33.10) by daedalus.apache.org with SMTP; 20 Dec 2002 10:44:25 -0000 Received: (qmail 19540 invoked by uid 97); 20 Dec 2002 10:45:26 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@jakarta.apache.org Received: (qmail 19490 invoked by uid 97); 20 Dec 2002 10:45:25 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 19478 invoked by uid 98); 20 Dec 2002 10:45:24 -0000 X-Antivirus: nagoya (v4218 created Aug 14 2002) In-Reply-To: To: "Tomcat Users List" Subject: Re: UTF-8 vs ISO-8859-1 and really screwed up webpages. MIME-Version: 1.0 X-Mailer: Lotus Notes Release 6.0 September 26, 2002 Message-ID: From: =?ISO-8859-1?Q?Kristj=E1n_Bjarni_Gu=F0mundsson?= Date: Fri, 20 Dec 2002 10:45:39 +0000 X-MIMETrack: Serialize by Router on Office/REK/Hugvit(Release 6.0|September 26, 2002) at 20.12.2002 10:45:40, Serialize complete at 20.12.2002 10:45:40 Content-Type: multipart/alternative; boundary="=_alternative 003B1D1100256C95_=" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N --=_alternative 003B1D1100256C95_= Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: quoted-printable Also note that mixing ISO-8859-1 and UTF-8 in html pages,javascript pages=20 and css pages is bad. Internet explorer assumes for example that if the html page is=20 UTF-8 that all javascript pages referenced from that page are also UTF-8. The key do successfully mix=20 different character set is to=20 always set the charset when referencing other text files, for example: If your application uses international character sest it is best to use=20 UTF-8 consistently throughout your web application. Perhaps if you could post the head of the the html generated that is=20 giving you the error. We could see what is wrong. - Kristjan "Bill Barker" wrote on 20.12.2002 06:22:31: > Kristjan's response is the best that I've seen so far on this thread. > Assuming that you are using Tomcat 4.x, you can also set <%@page > pageEncoding=3D"UTF-8" %> (of course, s/UTF-8// as needed). = This > tells the JSP compiler what charset your page was stored as, so that it = can > correctly translate static text within the page. The <%@page > contentType=3D"text/html; charset=3DUTF-8" %> directive is used to transl= ate > dynamic content. >=20 > "Andoni" wrote in message > news:001c01c2a76c$23b2eb70$39e1a8c0@HOLODECK... > > Are the HTML meta tags and the JSP tags interchangeable? i.e. are=20 they > the > > same thing? > > > > Andoni. > > > > ----- Original Message ----- > > From: "Bogdan Kiszka" > > To: "'Tomcat Users List'" > > Sent: Thursday, December 19, 2002 1:45 PM > > Subject: RE: UTF-8 vs ISO-8859-1 and really screwed up webpages. > > > > > > It is perfectly right. You must take care not to have page directive > > with contentType attribute in any included pages. If you have only one > > such an entry per page then everything is alright. > > I suggest to start with simple pages and then move to sophisticated > > ones. > > Bogdan > > > > -----Original Message----- > > From: Andoni [mailto:andoni@indigo.ie] > > Sent: Thursday, December 19, 2002 2:17 PM > > To: Tomcat Users List > > Subject: Re: UTF-8 vs ISO-8859-1 and really screwed up webpages. > > > > > > It tells me I can't have two "contentType" entries when I put in the=20 JSP > > tag!! > > > > Andoni. > > ----- Original Message ----- > > From: "Andoni" > > To: "Tomcat Users List" > > Sent: Thursday, December 19, 2002 12:58 PM > > Subject: Re: UTF-8 vs ISO-8859-1 and really screwed up webpages. > > > > > > > I am having this problem aswell. > > > > > > the pages I produce are coming up with all sorts of Japanese > > characters > > etc. > > > in them. > > > I have already inserted the Meta tags and converted the files using > > the > > > saveAs / UTF8 feature on my editor. > > > > > > Now I am going to add the <%@ page contentType =3D > > "text/html;charset=3DUTF-8" > > > %> > > > tag suggested by Bogdan below, is there anything else I must do? > > > > > > Andoni. > > > > > > ----- Original Message ----- > > > From: "Bogdan Kiszka" > > > To: "'Tomcat Users List'" > > > Sent: Thursday, December 19, 2002 9:25 AM > > > Subject: RE: UTF-8 vs ISO-8859-1 and really screwed up webpages. > > > > > > > > > In the JSP page, use a page directive to set the content type: > > > <%@ page contentType =3D "text/html;charset=3DUTF-8" %> > > > > > > > > > -----Original Message----- > > > From: Kristj?n Bjarni Gu?mundsson [mailto:kristjg@hugvit.is] > > > Sent: Thursday, December 19, 2002 9:50 AM > > > To: Tomcat Users List > > > Subject: Re: UTF-8 vs ISO-8859-1 and really screwed up webpages. > > > > > > > > > Yes, you are storing the page as ISO-8859-1 so you must serve the=20 page > > > as > > > ISO-8859-1 > > > changing the meta tag to UTF-8 doesn't magically convert the page to > > > UTF-8. > > > > > > If you want to serve the page as UTF-8 you must also save the page=20 as > > > UTF-8. > > > The meta tag is just a hint to the browser which charset the page is > > > using. > > > > > > Check you html editor to see if you can change the encoding to UTF-8 > > > when > > > saving. > > > > > > "Adam Greene" wrote on 18.12.2002 20:32:37: > > > > > > > I have two webpages and both contain the letter =E9 (litterally > > written > > > into > > > > the page), but one page displays it as =E9 and the other page=20 displays > > > it > > > as > > > > ?C and I cannot figure out why. I have tried setting (via META > > Tags) > > > the > > > > language to UTF-8 and to ISO-8859-1 and I can only get one page to > > > work > > > at a > > > > time (under UTF-8, the =E9 comes up as a block on the page that did > > work > > > > > > under > > > > ISO-8859-1). I can see no difference in the code. > > > > > > > > Does anyone have any ideas about what is going on?? > > > > > > > > > > > > > > > > -- > > > > To unsubscribe, e-mail: > > > > > > > For additional commands, e-mail: > > > > > > > > > > > > > > > > -- > > > To unsubscribe, e-mail: > > > > > > For additional commands, e-mail: > > > > > > > > > > > > > > > -- > > > To unsubscribe, e-mail: > > > > > For additional commands, e-mail: > > > > > > > > > > > > > > -- > > To unsubscribe, e-mail: > > > > For additional commands, e-mail: > > > > > > > > > > -- > > To unsubscribe, e-mail: > > > > For additional commands, e-mail: > > >=20 >=20 >=20 >=20 >=20 > -- > To unsubscribe, e-mail:=20 > For additional commands, e-mail:=20 >=20 --=_alternative 003B1D1100256C95_=--