DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=8982>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=8982

contentType in included file does not affect the parent

           Summary: contentType in included file does not affect the parent
           Product: Tomcat 4
           Version: 4.0.3 Final
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Jasper
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


>
> I want to clarify the following scenario:
>
> I have two jsp's defined as follows
>
> includejsp.jsp:
>
> <%@ page contentType="text/html; charset=euc-kr" %>
>
> <br>
>
> Result of includejsp.jsp
>
> <br>
>
> <!-- Korean (1)*********/-->
>
> ÇÑ±Û Å×½ºÆ®
>
> <br>
>
> <%= "Test Include"%>
>
> <br>
>
> <br>
>
> -------------------
>
> and test.jsp defined as follows:
>
> <%@ include file="./includejsp.jsp" %>
>
> <br>
>
> <BR>
>
> Result of test.jsp
>
> <BR>
>
> <!-- Korean (2)*********/-->
>
> ÇÑ±Û Å×½ºÆ®
>
> <BR>
>
> Test Test!!!
>
> ----------------
>
> Should the  <%@ page contentType="text/html; charset=euc-kr" %> in
> includejsp.jsp affect how the characters are translated during the gernation
> process in test.jsp?  In Tomcat 4.03, the korean string in test.jsp is
> translated in unicode and the one in includejsp.jsp is translated properly.
>
> Thanks for any comments, Jeff.


As the charset of the contentType or pageEncoding charset should affect
the translation of the whole translation unit, both including page and
included page (in the sense of include directive).

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to