You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Adam Greene <ag...@romulin.com> on 2002/12/18 21:32:37 UTC
UTF-8 vs ISO-8859-1 and really screwed up webpages.
I have two webpages and both contain the letter é (litterally written into
the page), but one page displays it as é and the other page displays it as
é 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 é 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: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: UTF-8 vs ISO-8859-1 and really screwed up webpages.
Posted by Andoni <an...@indigo.ie>.
No, I don't. Will adding one in help do you think?
Andoni.
----- Original Message -----
From: "m batsis" <mb...@netsmart.gr>
To: "Tomcat Users List" <to...@jakarta.apache.org>
Sent: Thursday, December 19, 2002 1:34 PM
Subject: Re: UTF-8 vs ISO-8859-1 and really screwed up webpages.
> Do you have an XML prolog? Even if you save your file using URF-8 you
> have to add the @page on the line *after* the XML prolog (if any), like:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <%@ page contentType = "text/html;charset=UTF-8">
>
>
> Manos
>
>
> Andoni wrote:
> > It tells me I can't have two "contentType" entries when I put in the JSP
> > tag!!
> >
> > Andoni.
> > ----- Original Message -----
> > From: "Andoni" <an...@indigo.ie>
> > To: "Tomcat Users List" <to...@jakarta.apache.org>
> > 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 =
"text/html;charset=UTF-8"
> >>%>
> >>tag suggested by Bogdan below, is there anything else I must do?
> >>
> >>Andoni.
> >>
> >>----- Original Message -----
> >>From: "Bogdan Kiszka" <ki...@seznam.cz>
> >>To: "'Tomcat Users List'" <to...@jakarta.apache.org>
> >>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 = "text/html;charset=UTF-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 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 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" <ag...@romulin.com> wrote on 18.12.2002 20:32:37:
> >>
> >>
> >>>I have two webpages and both contain the letter é (litterally written
> >>
> >>into
> >>
> >>>the page), but one page displays it as é and the other page 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 é 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:
> >>
> >><ma...@jakarta.apache.org>
> >>
> >>>For additional commands, e-mail:
> >>
> >><ma...@jakarta.apache.org>
> >>
> >>
> >>--
> >>To unsubscribe, e-mail:
> >><ma...@jakarta.apache.org>
> >>For additional commands, e-mail:
> >><ma...@jakarta.apache.org>
> >>
> >>
> >>
> >>--
> >>To unsubscribe, e-mail:
> >
> > <ma...@jakarta.apache.org>
> >
> >>For additional commands, e-mail:
> >
> > <ma...@jakarta.apache.org>
> >
> >>
> >
> >
> > --
> > To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> > For additional commands, e-mail:
<ma...@jakarta.apache.org>
> >
> >
>
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>
>
>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: UTF-8 vs ISO-8859-1 and really screwed up webpages.
Posted by m batsis <mb...@netsmart.gr>.
Do you have an XML prolog? Even if you save your file using URF-8 you
have to add the @page on the line *after* the XML prolog (if any), like:
<?xml version="1.0" encoding="UTF-8"?>
<%@ page contentType = "text/html;charset=UTF-8">
Manos
Andoni wrote:
> It tells me I can't have two "contentType" entries when I put in the JSP
> tag!!
>
> Andoni.
> ----- Original Message -----
> From: "Andoni" <an...@indigo.ie>
> To: "Tomcat Users List" <to...@jakarta.apache.org>
> 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 = "text/html;charset=UTF-8"
>>%>
>>tag suggested by Bogdan below, is there anything else I must do?
>>
>>Andoni.
>>
>>----- Original Message -----
>>From: "Bogdan Kiszka" <ki...@seznam.cz>
>>To: "'Tomcat Users List'" <to...@jakarta.apache.org>
>>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 = "text/html;charset=UTF-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 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 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" <ag...@romulin.com> wrote on 18.12.2002 20:32:37:
>>
>>
>>>I have two webpages and both contain the letter é (litterally written
>>
>>into
>>
>>>the page), but one page displays it as é and the other page 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 é 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:
>>
>><ma...@jakarta.apache.org>
>>
>>>For additional commands, e-mail:
>>
>><ma...@jakarta.apache.org>
>>
>>
>>--
>>To unsubscribe, e-mail:
>><ma...@jakarta.apache.org>
>>For additional commands, e-mail:
>><ma...@jakarta.apache.org>
>>
>>
>>
>>--
>>To unsubscribe, e-mail:
>
> <ma...@jakarta.apache.org>
>
>>For additional commands, e-mail:
>
> <ma...@jakarta.apache.org>
>
>>
>
>
> --
> To unsubscribe, e-mail: <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
>
>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
JWSDP1.2 TOMCAT 5 and bootstraper JVM classes
Posted by Bogdan Kiszka <ki...@seznam.cz>.
Hello,
I have installed JWSDP 1.2 with Tomcat 5 and tried to use servlet using
classes in JAR located in <java.home>\lib\ext. I need these there,
because the JAR, which I use for encryption, needs to be in trusted
directory with all security permissions granted.
When I have them stored in relevant application's WEB-INF/lib directory,
<jwsdp_home>\common\lib, <jwsdp_home>\server\lib,
<jwsdp_home>\jwsdp_shared\lib, or <jwsdp_home>\shared\lib - they always
have been loaded, but in servlet simply not trusted - in particular I
speak of bcprov-xxx.jar file.
Does anyone know, 1) why JARs from this directory do not load in Tomcat
with servlets, while with applets do, 2) where JARs with all security
permissions should be stored to be successfully loaded to cooperate with
servlets in Tomcat?
Thanks in advance.
Bogdan
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: UTF-8 vs ISO-8859-1 and really screwed up webpages.
Posted by Kristján Bjarni Guðmundsson <kr...@hugvit.is>.
Also note that mixing ISO-8859-1 and UTF-8 in html pages,javascript pages
and css pages
is bad. Internet explorer assumes for example that if the html page is
UTF-8 that all javascript pages
referenced from that page are also UTF-8. The key do successfully mix
different character set is to
always set the charset when referencing other text files, for example:
<link rel="stylesheet" type="text/css" href="my_css.css"
charset="ISO-8859-1">
<script language="JavaScript" src="my_javascript.js"
charset="ISO-8859-1"></script>
If your application uses international character sest it is best to use
UTF-8 consistently
throughout your web application.
Perhaps if you could post the head of the the html generated that is
giving you the error.
We could see what is wrong.
- Kristjan
"Bill Barker" <wb...@wilshire.com> 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="UTF-8" %> (of course, s/UTF-8/<my-encoding>/ 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="text/html; charset=UTF-8" %> directive is used to translate
> dynamic content.
>
> "Andoni" <an...@indigo.ie> wrote in message
> news:001c01c2a76c$23b2eb70$39e1a8c0@HOLODECK...
> > Are the HTML meta tags and the JSP tags interchangeable? i.e. are
they
> the
> > same thing?
> >
> > Andoni.
> >
> > ----- Original Message -----
> > From: "Bogdan Kiszka" <ki...@seznam.cz>
> > To: "'Tomcat Users List'" <to...@jakarta.apache.org>
> > 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
JSP
> > tag!!
> >
> > Andoni.
> > ----- Original Message -----
> > From: "Andoni" <an...@indigo.ie>
> > To: "Tomcat Users List" <to...@jakarta.apache.org>
> > 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 =
> > "text/html;charset=UTF-8"
> > > %>
> > > tag suggested by Bogdan below, is there anything else I must do?
> > >
> > > Andoni.
> > >
> > > ----- Original Message -----
> > > From: "Bogdan Kiszka" <ki...@seznam.cz>
> > > To: "'Tomcat Users List'" <to...@jakarta.apache.org>
> > > 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 = "text/html;charset=UTF-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
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
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" <ag...@romulin.com> wrote on 18.12.2002 20:32:37:
> > >
> > > > I have two webpages and both contain the letter é (litterally
> > written
> > > into
> > > > the page), but one page displays it as é and the other page
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 é 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:
> > > <ma...@jakarta.apache.org>
> > > > For additional commands, e-mail:
> > > <ma...@jakarta.apache.org>
> > > >
> > >
> > >
> > > --
> > > To unsubscribe, e-mail:
> > > <ma...@jakarta.apache.org>
> > > For additional commands, e-mail:
> > > <ma...@jakarta.apache.org>
> > >
> > >
> > >
> > > --
> > > To unsubscribe, e-mail:
> > <ma...@jakarta.apache.org>
> > > For additional commands, e-mail:
> > <ma...@jakarta.apache.org>
> > >
> > >
> >
> >
> > --
> > To unsubscribe, e-mail:
> > <ma...@jakarta.apache.org>
> > For additional commands, e-mail:
> > <ma...@jakarta.apache.org>
> >
> >
> >
> > --
> > To unsubscribe, e-mail:
> > <ma...@jakarta.apache.org>
> > For additional commands, e-mail:
> > <ma...@jakarta.apache.org>
>
>
>
>
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>
>
Re: UTF-8 vs ISO-8859-1 and really screwed up webpages.
Posted by Bill Barker <wb...@wilshire.com>.
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="UTF-8" %> (of course, s/UTF-8/<my-encoding>/ 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="text/html; charset=UTF-8" %> directive is used to translate
dynamic content.
"Andoni" <an...@indigo.ie> wrote in message
news:001c01c2a76c$23b2eb70$39e1a8c0@HOLODECK...
> Are the HTML meta tags and the JSP tags interchangeable? i.e. are they
the
> same thing?
>
> Andoni.
>
> ----- Original Message -----
> From: "Bogdan Kiszka" <ki...@seznam.cz>
> To: "'Tomcat Users List'" <to...@jakarta.apache.org>
> 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 JSP
> tag!!
>
> Andoni.
> ----- Original Message -----
> From: "Andoni" <an...@indigo.ie>
> To: "Tomcat Users List" <to...@jakarta.apache.org>
> 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 =
> "text/html;charset=UTF-8"
> > %>
> > tag suggested by Bogdan below, is there anything else I must do?
> >
> > Andoni.
> >
> > ----- Original Message -----
> > From: "Bogdan Kiszka" <ki...@seznam.cz>
> > To: "'Tomcat Users List'" <to...@jakarta.apache.org>
> > 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 = "text/html;charset=UTF-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 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 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" <ag...@romulin.com> wrote on 18.12.2002 20:32:37:
> >
> > > I have two webpages and both contain the letter � (litterally
> written
> > into
> > > the page), but one page displays it as � and the other page 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 � 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:
> > <ma...@jakarta.apache.org>
> > > For additional commands, e-mail:
> > <ma...@jakarta.apache.org>
> > >
> >
> >
> > --
> > To unsubscribe, e-mail:
> > <ma...@jakarta.apache.org>
> > For additional commands, e-mail:
> > <ma...@jakarta.apache.org>
> >
> >
> >
> > --
> > To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> > For additional commands, e-mail:
> <ma...@jakarta.apache.org>
> >
> >
>
>
> --
> To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
>
>
>
> --
> To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: UTF-8 vs ISO-8859-1 and really screwed up webpages.
Posted by Andoni <an...@indigo.ie>.
Are the HTML meta tags and the JSP tags interchangeable? i.e. are they the
same thing?
Andoni.
----- Original Message -----
From: "Bogdan Kiszka" <ki...@seznam.cz>
To: "'Tomcat Users List'" <to...@jakarta.apache.org>
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 JSP
tag!!
Andoni.
----- Original Message -----
From: "Andoni" <an...@indigo.ie>
To: "Tomcat Users List" <to...@jakarta.apache.org>
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 =
"text/html;charset=UTF-8"
> %>
> tag suggested by Bogdan below, is there anything else I must do?
>
> Andoni.
>
> ----- Original Message -----
> From: "Bogdan Kiszka" <ki...@seznam.cz>
> To: "'Tomcat Users List'" <to...@jakarta.apache.org>
> 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 = "text/html;charset=UTF-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 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 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" <ag...@romulin.com> wrote on 18.12.2002 20:32:37:
>
> > I have two webpages and both contain the letter é (litterally
written
> into
> > the page), but one page displays it as é and the other page 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 é 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:
> <ma...@jakarta.apache.org>
> > For additional commands, e-mail:
> <ma...@jakarta.apache.org>
> >
>
>
> --
> To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
>
>
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>
>
>
--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>
--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
RE: UTF-8 vs ISO-8859-1 and really screwed up webpages.
Posted by Bogdan Kiszka <ki...@seznam.cz>.
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 JSP
tag!!
Andoni.
----- Original Message -----
From: "Andoni" <an...@indigo.ie>
To: "Tomcat Users List" <to...@jakarta.apache.org>
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 =
"text/html;charset=UTF-8"
> %>
> tag suggested by Bogdan below, is there anything else I must do?
>
> Andoni.
>
> ----- Original Message -----
> From: "Bogdan Kiszka" <ki...@seznam.cz>
> To: "'Tomcat Users List'" <to...@jakarta.apache.org>
> 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 = "text/html;charset=UTF-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 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 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" <ag...@romulin.com> wrote on 18.12.2002 20:32:37:
>
> > I have two webpages and both contain the letter é (litterally
written
> into
> > the page), but one page displays it as é and the other page 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 é 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:
> <ma...@jakarta.apache.org>
> > For additional commands, e-mail:
> <ma...@jakarta.apache.org>
> >
>
>
> --
> To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
>
>
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>
>
>
--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: UTF-8 vs ISO-8859-1 and really screwed up webpages.
Posted by Andoni <an...@indigo.ie>.
It tells me I can't have two "contentType" entries when I put in the JSP
tag!!
Andoni.
----- Original Message -----
From: "Andoni" <an...@indigo.ie>
To: "Tomcat Users List" <to...@jakarta.apache.org>
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 = "text/html;charset=UTF-8"
> %>
> tag suggested by Bogdan below, is there anything else I must do?
>
> Andoni.
>
> ----- Original Message -----
> From: "Bogdan Kiszka" <ki...@seznam.cz>
> To: "'Tomcat Users List'" <to...@jakarta.apache.org>
> 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 = "text/html;charset=UTF-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 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 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" <ag...@romulin.com> wrote on 18.12.2002 20:32:37:
>
> > I have two webpages and both contain the letter é (litterally written
> into
> > the page), but one page displays it as é and the other page 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 é 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:
> <ma...@jakarta.apache.org>
> > For additional commands, e-mail:
> <ma...@jakarta.apache.org>
> >
>
>
> --
> To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
>
>
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>
>
>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: UTF-8 vs ISO-8859-1 and really screwed up webpages.
Posted by Andoni <an...@indigo.ie>.
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 = "text/html;charset=UTF-8"
%>
tag suggested by Bogdan below, is there anything else I must do?
Andoni.
----- Original Message -----
From: "Bogdan Kiszka" <ki...@seznam.cz>
To: "'Tomcat Users List'" <to...@jakarta.apache.org>
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 = "text/html;charset=UTF-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 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 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" <ag...@romulin.com> wrote on 18.12.2002 20:32:37:
> I have two webpages and both contain the letter é (litterally written
into
> the page), but one page displays it as é and the other page 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 é 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:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>
>
--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
RE: UTF-8 vs ISO-8859-1 and really screwed up webpages.
Posted by Bogdan Kiszka <ki...@seznam.cz>.
In the JSP page, use a page directive to set the content type:
<%@ page contentType = "text/html;charset=UTF-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 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 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" <ag...@romulin.com> wrote on 18.12.2002 20:32:37:
> I have two webpages and both contain the letter é (litterally written
into
> the page), but one page displays it as é and the other page 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 é 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:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>
>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: UTF-8 vs ISO-8859-1 and really screwed up webpages.
Posted by Kristján Bjarni Guðmundsson <kr...@hugvit.is>.
Yes, you are storing the page as ISO-8859-1 so you must serve the 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 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" <ag...@romulin.com> wrote on 18.12.2002 20:32:37:
> I have two webpages and both contain the letter é (litterally written
into
> the page), but one page displays it as é and the other page displays it
as
> é 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 é 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:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>
>