On Mit, 2004-01-28 at 17:33, Thomas Zehetbauer wrote:
> In my JSP page I output a XML declaration with the encoding attribute
> set to UTF-8 and use a page contentType="text/xml; charset=UTF-8"
> declaration as well. When I use the JSTL format taglib to output a
> currency value the generated Euro symbol looks fine when I get it
> directly from the JSP. Unfortunately it gets damaged when I pipe it
> through the Cocoon JSP generator. Cocoon on the other hand works fine
> when I save the output of the JSP to a file and use the file generator
> on this.
Ok, I have just tracked down the problem and included a small patch for
Cocoon-2.1.3.
Tom
--- cocoon-2.1.3/src/blocks/jsp/java/org/apache/cocoon/components/jsp/JSPEngineImpl.java.old 2004-01-30 03:23:58.072851904 +0100
+++ cocoon-2.1.3/src/blocks/jsp/java/org/apache/cocoon/components/jsp/JSPEngineImpl.java 2004-01-30 03:25:20.564826892 +0100
@@ -228,7 +228,7 @@
}
public void flushBuffer() throws IOException { }
public int getBufferSize() { return 1024; }
- public String getCharacterEncoding() { return this.response.getCharacterEncoding();}
+ public String getCharacterEncoding() { return "UTF-8";}
public Locale getLocale(){ return this.response.getLocale();}
public PrintWriter getWriter() {
return this.output.getWriter();
--- cocoon-2.1.3/src/blocks/jsp/java/org/apache/cocoon/components/jsp/JSPEngineImplNamedDispatcherInclude.java.old 2004-01-30 03:24:12.717249827 +0100
+++ cocoon-2.1.3/src/blocks/jsp/java/org/apache/cocoon/components/jsp/JSPEngineImplNamedDispatcherInclude.java 2004-01-30 03:24:58.534237263 +0100
@@ -221,7 +221,7 @@
}
public void flushBuffer() throws IOException { }
public int getBufferSize() { return 1024; }
- public String getCharacterEncoding() { return this.response.getCharacterEncoding();}
+ public String getCharacterEncoding() { return "UTF-8";}
public Locale getLocale(){ return this.response.getLocale();}
public PrintWriter getWriter() {
return this.output.getWriter();