Message:

   The following issue has been reopened.

   Reopener: J. Patterson Waltz III
       Date: Mon, 15 Nov 2004 9:24 PM

In my Tiles master layout, I have the following directive, which is the non-XML 
equivalent to what you suggested:

<%@ page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8" %>

When I look at Firefox's Page Info window, it tells me the page is UTF-8 
encoded. Same thing with curl: jpw$ curl -i 
'http://cerenit.local:8080/SAGE/client.do?retrieve=&d-16544-p=2&status=active'
HTTP/1.1 200 OK
Set-Cookie: JSESSIONID=42665940856D4110CCB07BD62FD7F523; Path=/SAGE
Content-Type: text/html;charset=UTF-8
Transfer-Encoding: chunked
Date: Tue, 16 Nov 2004 02:04:45 GMT
Server: Apache-Coyote/1.1

But when I export a CSV, it's Windows Latin-1 encoded... :-(

All the above is on my OS X box running JBoss 3.2.5. 

I have the same app running on a Linux box and it sends back pages which have 
both ISO-8859 *and* UTF-8 listed in the headers:

$ curl -I 
'http://xxxxx.dyndns.org:8080/SAGE/client.do?retrieve=&d-16544-p=2&status=active'
HTTP/1.1 200 OK
Set-Cookie: JSESSIONID=27E58087A1A139543FD72477379D826F; Path=/SAGE
Content-Type: text/html; charset=ISO-8859-1;charset=UTF-8
Content-Length: 0
Date: Tue, 16 Nov 2004 02:12:39 GMT
Server: Apache-Coyote/1.1

Exporting from that machine in CSV also gives Windows Latin-1 encoding, perhaps 
less surprisingly, in light of the weird double encoding header.

Che palle !
---------------------------------------------------------------------
View the issue:
  http://jira.codehaus.org/browse/DISPL-107

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: DISPL-107
    Summary: Excel and Text exports use Windows Latin-1 encoding
       Type: Bug

     Status: Reopened
   Priority: Minor

 Original Estimate: Unknown
 Time Spent: Unknown
  Remaining: Unknown

    Project: DisplayTag
 Components: 
             Export
   Fix Fors:
             1.0 RC2
   Versions:
             1.0 RC2

   Assignee: fabrizio giustina
   Reporter: J. Patterson Waltz III

    Created: Fri, 12 Nov 2004 10:12 PM
    Updated: Mon, 15 Nov 2004 9:24 PM

Description:
Data coming out of my UTF-8 format Postgres database appears correctly in 
displaytag tables on webpages, but when I request an export in Excel or text 
format, all non ASCII characters are garbled. I am using the Mac OS X Platform.

After some exploration, I determined that this is due to the file encoding 
being set to Windows Latin-1.  Excel documents which were created on Windows 
and that I open on my Mac do not have garbled non-ASCII text, so I suspect that 
all that is missing in the exported file is some way to indicate to Excel what 
encoding has been used. Some of my recent web searches suggest that at least 
the more recent versions of Office store characters in little-endian UCS2 
encoding. 

For text files, it seems to  me that UTF-8 would be the the most platform and 
language agnostic encoding to use.


---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira



-------------------------------------------------------
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
_______________________________________________
displaytag-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/displaytag-devel

Reply via email to