data export help: line breaks on tab-delimited download

From: Ken Irwin <kirwin_at_nyob>
Date: Tue, 11 Jan 2011 15:29:45 -0500
To: CODE4LIB_at_LISTSERV.ND.EDU
Hi all,

I've got a dataset that I'm trying to make exportable for MiniTab, etc. It's tab-delimited and lines end with "\n".

When I serve it up as "text/plain" and view it in my web browser, it works just fine and all the line breaks are in the right places.

When I send the header to make it a downloadable "attachment":
Content-Disposition: attachment; filename="categories.tab"
Then there are no line breaks at all - it's all one line, and the line-breaks don't appear.

I tried "\r" instead, and that didn't work either.

Any idea what I might be doing wrong here?

Thanks
Ken
Received on Tue Jan 11 2011 - 15:30:06 EST