Win a copy of Java EE 8 High Performance this week in the Java/Jakarta EE forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

jsp include - utf-8 encoding problem  RSS feed

Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've simple jsp page which looks like this:
<%@ page contentType="text/html; charset=UTF-8" %>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">
<jsp:include page="test.html" flush="true" />
<%@ include file="test.html" %>

test.html is a normal text file with utf-8 encoding.
I deployed this page on tomcat 5.0.15 (Linux) but there is a problem with encoding. In some way tomcat don't include correctly (in both ways) my test file and I don't get correct output (there are some strange characters).
I've tried this with tomcat 4.1.24 too and there is the same problem.
How can i fix it, please help.
[ December 26, 2003: Message edited by: Artur Wronski ]
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!