locked
Problem with encoding making excel file from GridView RRS feed

  • Question

  • User1770732507 posted
    HI!

    I build my own control that uses the response object to make excel file
    from GridView and send the excel file back to user.

    Like here:

    http://www.c-sharpcorner.com/Code/2003/Sept/ExportASPNetDataGridToExc...

    I work in UTF-8 encoding and my data is in hebrew. Once I get normal
    excel in Hebrew and once in gibrish .

    What can be a problem. Can you help me?

    I am sure you've meet this problem before.

    Tank you

    Arkady

    Tuesday, December 12, 2006 4:32 AM

All replies

  • User1416329745 posted

    Excel require UTF-7 for none English and I have covered all you need in the thread below.  Hope this helps.

    http://forums.asp.net/thread/1423770.aspx

    Tuesday, December 12, 2006 11:38 AM
  • User1770732507 posted

    Thank you very much!

     

    It helped!!!

     

    But why it didn't worked with UTF-8. It is a mistery to me.

     

    Thank you

     

    Gadi

    Wednesday, December 13, 2006 5:58 AM
  • User1416329745 posted

    Thank you very much!

    It helped!!!

    But why it didn't worked with UTF-8. It is a mistery to me.

    Thank you

    Gadi

    I am glad I could help but I think Excel uses UTF7 because it is Microsoft proprietry application so just use what work and yes I also thinks it is strange.

    Wednesday, December 13, 2006 6:51 AM