You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by fl...@cps.sydeco.com.br on 2000/07/05 02:29:26 UTC
changing java encoding from UTF8 to ISO8859_1
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