I have just looked up where I do this and although it calls a number of other methods, if I distil it out to an example, I get this for Safari;

response.setHeader("text/csv; charset=UTF-8; encoding=UTF-8", "content-type"); response.setHeader("attachment; filename=\"FOOBAR.CSV\"", "content- disposition");

..and this for MSIE...

response.setHeader("application/vnd.ms-excel; charset=UTF-8; encoding=UTF-8", "content-type"); response.setHeader("attachment; filename=\"FOOBAR.CSV\"", "content- disposition");

This is in production and I have not had any complaints. ;-)

cheers.

No luck (for me) with that approach. And I presume you mean "text/ csv" not "test/csv"?
...

response.setHeader( "test/csv; name=\"" + reportFilename + "\"", "content-type" );

___
Andrew Lindesay
www.lindesay.co.nz

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to