You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2004/12/07 17:26:13 UTC

DO NOT REPLY [Bug 32568] New: - JspWriter uses plattform encoding

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=32568>.
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=32568

           Summary: JspWriter uses plattform encoding
           Product: Tomcat 5
           Version: 5.5.4
          Platform: All
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Servlet & JSP API
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: michael@mosmann.de


JspWriter ignores any information i provide about the encoding of the response. 
My plattform encoding is UTF-8 running on Fedora1. But i need iso-8859-1 
encoding. I did various test. 

All i can say is, that if i encode the Strings by myself and write this into the 
outputstream the result is as expected.

And the only thing, that all this contentType stuff is changing is thr response 
header.

I read a loot in news/google/tomcat-mailinglist. As far as i know the solution 
for this problem was all the time "change encoding to utf-8". But this is not a 
solution.

Excample code included:

<%@page contentType="text/html; charset=ISO-8859-1"%>
<br>
Ae - � - &Auml;<br>
Oe - � - &Ouml;<br>
Ue - � - &Uuml;<br>
<br>
<%
	
	String[][] test=
		{
			{"Ae","�"},
			{"Oe","�"},
			{"Ue","�"},
		};
	
	for (int i=0,s=test.length;i<s;i++)
	{
		out.print(test[i][0]);
		out.print(" - ");
		out.print(test[i][1]);
		out.print("<br>\n");
		
		System.out.print(test[i][0]);
		System.out.print(" - ");
		System.out.print(test[i][1]);
		System.out.print("<br>\n");
		
	}
%>

-- 
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: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org