• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

jsp include - utf-8 encoding problem

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello!
I've simple jsp page which looks like this:
<%@ page contentType="text/html; charset=UTF-8" %>
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">
</HEAD>
<BODY>
<jsp:include page="test.html" flush="true" />
<%@ include file="test.html" %>

</BODY>
</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.
Arthur
[ December 26, 2003: Message edited by: Artur Wronski ]
 
Catch Ernie! Catch the egg! And catch this tiny ad too:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic