Hi There;
I was asking the export of text into excel. However, I have Turkish characters such as "ç,s,i ,g ". These characters are not represented properly in the file. How can I solve it? Thanks in advance.
private void ExportDataSetToExcel(DataSet ds)
{
string filename = cmbDistrictQuery.Text ;
List<BiologicalDiversityMonitoringPlan> result = null;
try
{
result = convertDataSettoList(ds);
//I know that the characters are represented properly here. (from debug)
resultgrid.DataSource = result;
resultgrid.DataBind();
Export(filename, resultgrid);
}
catch (Exception ex)
{
StatikFonksiyon.emailtheException(ex);
throw;
}
}
public void Export(string fileName, GridView gv)
{
Response.Clear();
Response.Buffer = true;
Response.AddHeader("content-disposition", "attachment;filename=" + file ...
Go to the complete details ...