tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Valera Molyakov" <val...@kompan.com.ua>
Subject Re: content-type meta tag
Date Mon, 29 Oct 2001 14:16:08 GMT

Try following

1. For JSP :
    <%@ page contentType="text/html;charset=windows-1251"%>

2. For servlet :
      private static final String CONTENT_TYPE = "text/html;
charset=windows-1251";
      response.setContentType(CONTENT_TYPE);

Browser  look  content and if content not setup look meta tag .


----- Original Message -----
From: "David Treves" <dwork@macam.ac.il>
To: <tomcat-user@jakarta.apache.org>
Sent: Monday, October 29, 2001 12:41 PM
Subject: content-type meta tag


> Hi,
>
> I am developing a non-English web application. The problem I encounter is
> that the <META> which defines the content-type seem to not have any effect
> on the HTML page.
>
> I keep see my content in Cyrillic font.
>
> Note that it happens only in JSP and servlets, i.e. htm files are ok.
>
> Is there any header that Tomcat adds automatically?
>
> What should I do to avoid that problem?
>
>
> Thanks in advance!
> David Treves.
>
>
> --
> To unsubscribe, e-mail:
<mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
<mailto:tomcat-user-help@jakarta.apache.org>


--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>


Mime
View raw message