Export to excel and special characters

T

Tim

I am exporting a dataset to Excel.

I can successfully view the dataset in Excel however, there are
special characters that are appearing in the form of Â, â€" and
others.

My code in C# starts off like this:

Response.Clear();

Response.ContentType = "application/vnd.ms-excel";

Response.AddHeader("content-disposition",
"attachment;filename=GeneralInquiry.xls");


I've tried setting the Response.Charset = "" but that doesn't do
anything either.

Would anyone know what could be causing this and/or how to fix it?

Thank you.

-Tim
 
G

Guest

I am having the exact same error did you ever find a solution. I'd be grateful for any help.

Sam
I am exporting a dataset to Excel.
special characters that are appearing in the form of Â, â€" and
others.
> Response.AddHeader("content-disposition",
"attachment;filename=GeneralInquiry.xls");

User submitted from AEWNET (http://www.aewnet.com/)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top