It seems that internet explorer doesn't behave the same way as firefox.
So test with both browsers.
Maybe the default encoding of the system has also something to do with it.
Anyway changing the httpheader should fix this problem
Below are to traces of HTTP messages passing along that show the issue.
You can see that in both cases the server is replying with the same charset on the content-type.
Checking fast on the code it shows that the encoding to use is not passed as a parameter to the serializer, but injected in the XML stream. This makes the info however only available at the time the sax-events are passing through the pipe, apparently this is too late for the content-type to be changed....
1/ asking for a report in csv output utf-8 encoded:
--------------------------------------------------------------------------------
http://intranet/xreporter/nl-BE/report-a_352.txt?encoding=UTF-8&lineSeparator=dos&splitCharacter=comma&includeTitles=true
GET /xreporter/nl-BE/report-a_352.txt?encoding=UTF-8&lineSeparator=dos&splitCharacter=comma&includeTitles=true HTTP/1.1
Host: intranet
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.5) Gecko/20061201 Firefox/2.0.0.5 (Ubuntu-feisty)
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Language: nl-be,en-us;q=0.7,en;q=0.3
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Referer:
http://intranet/xreporter/nl-BE/reports/a_352/output
Cookie: daisyEditorHeight=800; locale=nl_BE
HTTP/1.x 200 OK
Date: Fri, 27 Jul 2007 21:44:26 GMT
Server: Jetty/4.2.22 (Linux/2.6.15-28-server i386 java/1.5.0_06)
X-Cocoon-Version: 2.1.6
Content-Type: text/plain; charset=UTF-8
Via: 1.1 intranet
Transfer-Encoding: chunked
2/ asking for a report in csv output latin-1 encoded:
--------------------------------------------------------------------------------
http://intranet/xreporter/nl-BE/report-a_352.txt?encoding=ISO-8859-1&lineSeparator=dos&splitCharacter=comma&includeTitles=true
GET /xreporter/nl-BE/report-a_352.txt?encoding=ISO-8859-1&lineSeparator=dos&splitCharacter=comma&includeTitles=true HTTP/1.1
Host: intranet
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.5) Gecko/20061201 Firefox/2.0.0.5 (Ubuntu-feisty)
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Language: nl-be,en-us;q=0.7,en;q=0.3
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Referer:
http://intranet/xreporter/nl-BE/reports/a_352/output
Cookie: daisyEditorHeight=800; locale=nl_BE
HTTP/1.x 200 OK
Date: Fri, 27 Jul 2007 21:46:18 GMT
Server: Jetty/4.2.22 (Linux/2.6.15-28-server i386 java/1.5.0_06)
X-Cocoon-Version: 2.1.6
Content-Type: text/plain; charset=UTF-8
Via: 1.1 intranet
Transfer-Encoding: chunked
Fixed in SVN rev 696.