Sub OutputCSV(finalText)In my application, the complete CSV data was stored in the finalText variable. If that's not the case, replace the Response.Write statement with the CSV-generating logic.
Response.Clear
Response.Charset = "utf-8"
Response.ContentType = "text/plain"
Response.Codepage = 65001
Response.Write finalText
Response.End
End Sub
Showing posts with label CSV. Show all posts
Showing posts with label CSV. Show all posts
Output UTF-8 text from ASP script
I had to write an application that outputs CSV text encoded as UTF-8 from an ASP script. This is what I've ended with:
CSV format specifications
If you ever need to know specifics about Comma-Separated-Values (CSV) format, this is probably as good as you'll get. More about using XSLT to generate CSV files in an upcoming post :)
Subscribe to:
Posts (Atom)