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
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:
Related Posts by Categories
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment