I am working with asp.net application with c#. I am trying let user download a file with an IIF extension to support QuickBooks integration.
Step 1: Save the file in web application domain path
After executing the above lines of code I opened the file using notepad++ and verified the encoding. it showed " Encode in UTF-8" checked
- The same saved file should be downloaded now from the application domain path.
- I have written the following logic to done the downloading file job
- Unfortunately after downloading the file from app domain path encoding got changed to UTF-8-BOM.
- I verified in Notepad++
The file encoding should be UTF-8 only. I have changed my code many times but still no luck.
The Reason behind changing the UTF-8 is I need to feed this file to QuickBooks. Quick books is throwing exception if the encoding is UTF-8-BOM
Links followed
- How to set UTF-8 encoding for a PHP file
- How to make sure my created filedownload is UTF-8? (and not UTF-8 without BOM)
- Response.Write - filename encoding wrong in Internet Explorer