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

           Summary: <[EMAIL PROTECTED] pageEncoding="UTF-8"%> doesn't work 
within
                    included JSP Fragment
           Product: Tomcat 5
           Version: 5.5.7
          Platform: PC
        OS/Version: Windows 2000
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Jasper
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: [EMAIL PROTECTED]


Try this:
hint: hello key corresponds to russian 'Privet' string ;)

[/WEB-INF/classes/messages_ru_RU.properties]
hello=\u041F\u0440\u0438\u0432\u0435\u0442
[__________]

[/WEB-INF/jspf/header.jspf]
<[EMAIL PROTECTED] contentType="text/html"%>
<[EMAIL PROTECTED] pageEncoding="UTF-8"%>
<[EMAIL PROTECTED] prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"; %>
[__________]

[/index.jsp]
<[EMAIL PROTECTED] file="/WEB-INF/jspf/header.jspf" %>
<fmt:message key="hello" />
[__________]


Unfortunately, this wouldn't work :( and response is being sent using ISO-8859-1
encoding.

To woorkaround this, I putthe following line into [/index.jsp]:
  <[EMAIL PROTECTED] pageEncoding="UTF-8"%>
.. just before <[EMAIL PROTECTED] file="/WEB-INF/jspf/header.jspf" %>
(putting it after works well also)

However, if I decide to change content type to text/plain, changing it in
[header.jspf] works ok.

-- 
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to