Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > .NET General

Vista - Writing special characters to excel html

Reply
 
Old 05-29-2008   #1 (permalink)
jpero09


 
 

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#

My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Using special characters on my tagline Live Messenger
Replace special characters VB Script
Password with special characters Live Mail
Typing in special characters bug Vista General
Special Characters - how? Vista General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46