tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <fl...@cps.sydeco.com.br>
Subject changing java encoding from UTF8 to ISO8859_1
Date Wed, 05 Jul 2000 00:29:26 GMT

Hi all,

I propose the above patch to src/org/apache/jasper/compiler/Compiler.java:

--- Compiler.java~      Tue Apr 18 16:56:21 2000
+++ Compiler.java       Tue Jul  4 20:38:34 2000
@@ -143,7 +143,7 @@
         // XXX - There are really three encodings of interest.
 
         String jspEncoding = "8859_1";          // default per JSP spec
-        String javaEncoding = "UTF8";           // perhaps debatable?
+        String javaEncoding = "8859_1";         // same as jspEncoding
 
        // This seems to be a reasonable point to scan the JSP file
        // for a 'contentType' directive. If it found then the set


Chaging the javaEncoding to 8859_1 solves the problem of those who need
latin accents, like me. UTF8 was messing up the output of my JspC's
precompiled jsps.

An even better approach would be to pass the encoding as an command line
parameter or obtain it through a property.

Thanks,
Flexa


Mime
View raw message