Bram Bouwens wrote:
I just noticed that fixing this -21 to the proper 235 already makesThe actual output is produced by calling void write(int b) from MyServletOutputStream for each character, with the ISO-8859-1 encoding of the character, sign extended, as a parameter: the ë mentioned above, which is 235 in ISO-8859-1, is sent as -21 . This appears quite silly and inefficient to me.
the application work for now, as the current implementations happen
to be satisfied by ISO-8859-1. So as a temporary work-around I have
this patch:
--- old/cocoon-2.0.3/src/java/org/apache/cocoon/components/jsp/JSPEngineImpl.java
Mon Jul 15 10:56:05 2002
+++ project/cocoon-2.0.3/src/java/org/apache/cocoon/components/jsp/JSPEngineImpl.java
Tue Nov 5 14:45:31 2002
@@ -286,8 +286,11 @@
return this.writer;
}
public void write(int b) throws IOException {
- // This method is not used but have to be implemented
- this.writer.write(b);
+ // This method is how Orion passes ALL the content, one char at a time
+ // very ugly: it isn't properly specified in which encoding b is
+ // but it turns out to be iso-8859-1 with the sign bit extended,
+ // so and with 255 to get proper 1-byte codes
+ this.writer.write(b & 255);
}
public byte[] toByteArray() {
this.writer.flush();
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>