Hi,

When following the code, something looks strange:
The JspReader converts from sourceEnc to JAVA (UTF-8) so why isDefaultPageEncoding not set to true?


Find enclosed the patch I have tested on BS2000 with jsp files in EBCDIC using
+++
<jsp-property-group>
<url-pattern>/*</url-pattern>
<page-encoding>OSD_EBCDIC_DF04_1</page-encoding>
</jsp-property-group>
+++
In web.xml
Without the patch the page is sent in EBCDIC to the broswer (text/html;charset=OSD_EBCDIC_DF04_1).


Any comments?

Cheers

Jean-Frederic
Index: jasper2/src/share/org/apache/jasper/compiler/ParserController.java
===================================================================
RCS file: 
/home/cvspublic/jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler/ParserController.java,v
retrieving revision 1.56
diff -u -r1.56 ParserController.java
--- jasper2/src/share/org/apache/jasper/compiler/ParserController.java  11 Jan 
2005 22:14:55 -0000      1.56
+++ jasper2/src/share/org/apache/jasper/compiler/ParserController.java  5 May 
2005 15:28:09 -0000
@@ -208,6 +208,10 @@
                JspReader jspReader = new JspReader(ctxt, absFileName,
                                                    sourceEnc, inStreamReader,
                                                    err);
+                // If sourceEnc is used the page is converted by jspReader
+                if (sourceEnc!=null)
+                    isDefaultPageEncoding=true;
+
                 parsedPage = Parser.parse(this, jspReader, parent, isTagFile,
                                          directiveOnly, jarFileUrl,
                                          sourceEnc, jspConfigPageEnc,

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

Reply via email to