471,120 Members | 1,474 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,120 software developers and data experts.

Writing special characters to excel html

Having some trouble writing out accented characters to an ms-excel
type output from my asp.net page (c#).
I've tried a few different charsets but every time the on my page is
getting rendered as è

Any ideas?

...
Response.Clear();
Response.Buffer= true;
Response.AddHeader("content-disposition",
"attachment;filename="+filename+".xls");
//Response.AddHeader("charset", "ISO-8859-1");

Response.ContentType = "application/ms-excel";
//Response.ContentType = "application/ms-excel,ISO-8859-1";

Response.Charset = "";
//Response.Charset = Encoding.UTF8.EncodingName;
//Response.Charset = Encoding.Default.EncodingName;
//Response.Charset = "ISO-8859-1";
...

Found this similar post, but it doesn't have any resolution listed.
http://groups.google.com/group/micro...+%2B+ms-excel#
Jun 27 '08 #1
0 1048

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Barry Olly | last post: by
5 posts views Thread by Matthew Shaw | last post: by
1 post views Thread by Tomas Vera | last post: by
3 posts views Thread by orgelizer via AccessMonster.com | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.