tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sköldheimer Fredrik <>
Subject Wrong charset (is UTF-8 should be ISO 8859-1)
Date Thu, 04 Jan 2007 08:06:58 GMT
I'm a tomcat beginner but have experience of the apache http server. 
I have a character issue I can't figure out. Here are a simple example of a html-page. 
- 8< -----
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" ""
<html xmlns="" xml:lang="sv" lang="sv">
            <title>min titel</title>
            <meta name="Title" content="min sida" />            
            <meta http-equiv="Content-type" content="text/html; charset=ISO-8859-1" />
            <meta http-equiv="Content-Script-Type" content="text/javascript" />
            <meta http-equiv="Content-Style-Type" content="text/css" />
            <meta http-equiv="content-language" content="sv" />
            <meta name="robots" content="Index, follow" />
            <meta name="Description" content="[B@abc8ee" />
            <meta name="Keywords" content="mina keywords" />
            <link rel="schema.DC" href="" />
            <meta name="DC.Format" scheme="IMT" content="text/html" />
            <meta name="DC.Type" content="text" />
            <meta name="DC.Title" content="titel" />
            <meta name="DC.Description" content="[B@abc8ee" />
            <meta name="DC.Subject" content="" />
            <meta name="DC.Creator" content="Jag" />
            <meta name="Date" scheme="W3CDTF" content="2006-12-15" />
            <meta name="DC.Date" scheme="W3CDTF" content="2006-12-15" />
            <meta name="DC.Date.Modified" scheme="W3CDTF" content="2006-12-15" />
            <meta name="DC.Date.Created" scheme="W3CDTF" content="2006-11-27" />
            <meta name="DC.Language" scheme="RFC1766" content="sv" />
            <meta name="DC.Identifier" scheme="URL" content="" />
            <meta name="DC.Publisher" content="min content" />
            <meta name="DC.Rights" content="comyright till mig" />
            <meta name="DC.Organisation" content="organisation" />
Now, When I view the page with explorer/firefox/opera it still think the characterset should
be UTF-8. I have looked in the config files of tomcat but can't find any parameters that corresponds
to the "defaultcharacterset" that I'm used to from apache http server httpd.conf file. Is
there such a parameter in tomcat? If not, why does the webbrowser think the page is in UTF8
when running the page on tomcat but ISO 8859-1 when running it on a apache http server?

Fredrik Sköldheimer


+46 36 32 65 64
+46 36 32 40 00
265 64

Box 1024
551 11 Jönköping


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message