I am developing a website that allow to export data in MSSQL to a CSV file but i have a trouble that my Data Base contain Vietnamese so when i export it to CVS file. All of Vietnamese has error! How could i do to export Vietnamese without error with Vietnamese data? Here my return file code:
return File(new System.Text.UnicodeEncoding().GetBytes(str.ToString()), "text/csv", filename + DateTime.Now + ".csv");