tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 40440] New: - Problem with characters when include static html
Date Thu, 07 Sep 2006 16:29:25 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=40440>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=40440

           Summary: Problem with characters when include static html
           Product: Tomcat 5
           Version: Unknown
          Platform: Other
        OS/Version: other
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Jasper
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: tbrauncajs@gmail.com


When I try to include static html page with characters encoded with UTF-8 then
this characters are displayed incorrectly. When I do the same page as jsp and I add 

<%@ page contentType="text/html; charset=UTF-8"%> in the beginning then
everything is ok. 

following there are example of code I do for testing. The same example (with
static html) works fine in Tomcat 4

main.jsp

<%@ page contentType="text/html; charset=UTF-8"%>
<html>
<body>
HTML:<%@include file="/included.htm" %>
<br/>
JSP:<%@include file="/included1.jsp" %>
</body>
</html>


included.htm

&#261;&#281;&#347;&#263;&#380;&#378;&#324;&#322;&#321;&#262;&#377;&#379;&#260;&#346;&#323;&#280;


included.jsp

<%@ page contentType="text/html; charset=UTF-8"%>
&#261;&#281;&#347;&#263;&#380;&#378;&#324;&#322;&#321;&#262;&#377;&#379;&#260;&#346;&#323;&#280;

I also attache this examples

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message