Hi

I'm try to export a table to CSV format;
Following the example from "wicket.examples.displaytag.export", most 
things goes well, except the encoding.
It seems that when I export it to the CSV or XLS format, the Excel don't 
know what encoding my file used.
All the Chinese characters in CSV and XLS are crap, and when exports to 
XML it works well with the browser at UTF-8 encoding.
Plus, when I use WORD to open my CSV files, it asked me to choose the 
encoding, and with "UTF-8", it just fine.

So I think the Excel may not know the encoding by himself,
I wondered if there is a way to let him know.

I tried this

response.setCharacterEncoding("UTF-8");

while reponse is WebResponse.
But no luck.

Any idea to fix that?

Regards
LongkerDandy

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to