M
Michael Haberfellner
hi everyone!
i have to export an allready build csv-text into excel. works fine, but
when it comes down to displaying special characters (umlaute - as i'm
from austria where we use those shitty little things my code fails.
in the variable "locCSV" the text is correct, as if i put it onto screen
with response.write the characters are displayed perfect!
here is the code i'm using:
Response.Clear();
Response.ContentType = "application/vnd.ms-excel";
Response.Charset = "UTF-8";
Response.AddHeader("content-disposition","attachment;filename=Export.csv");
System.IO.StringWriter locStringWriter = new System.IO.StringWriter();
locStringWriter.GetStringBuilder().Append(locCSV);
Response.Write(locStringWriter.ToString());
Response.End();
i've searched the internet and tried a lot of things. but nothing
worked. could anyone of you help me please?
thanx and greetings from vienna
mike
i have to export an allready build csv-text into excel. works fine, but
when it comes down to displaying special characters (umlaute - as i'm
from austria where we use those shitty little things my code fails.
in the variable "locCSV" the text is correct, as if i put it onto screen
with response.write the characters are displayed perfect!
here is the code i'm using:
Response.Clear();
Response.ContentType = "application/vnd.ms-excel";
Response.Charset = "UTF-8";
Response.AddHeader("content-disposition","attachment;filename=Export.csv");
System.IO.StringWriter locStringWriter = new System.IO.StringWriter();
locStringWriter.GetStringBuilder().Append(locCSV);
Response.Write(locStringWriter.ToString());
Response.End();
i've searched the internet and tried a lot of things. but nothing
worked. could anyone of you help me please?
thanx and greetings from vienna
mike