Exporting to Excel with Unicode data

Discussion in 'ASP .Net' started by Bernard O'Flynn, Aug 11, 2004.

  1. Hi
    I'm trying to get the datagrid to excel export working. I've used the usual
    code examples that are floating around and it all works fine.
    The only problem is that I have multiple languages in the datagrid (one of
    them being Greek).
    When I open the exported Excel file in Excel, I get weird characters in some
    places - umlauts(?) in German as an example.
    I need to then go to the Excel Options and choose to re-open the file as
    Unicode and then the file displays correctly.

    Obviously I can't ask every user to do this - does anyone have any solution
    for this?

    Bernard O'Flynn, Aug 11, 2004
    1. Advertisements

  2. Bernard O'Flynn


    Aug 22, 2007
    Likes Received:
    Add the follwing line

    Response.Write("<meta http-equiv=Content-Type content=\"text/html; charset=utf-8\">");
    bmgty, Aug 22, 2007
    1. Advertisements

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 (here). After that, you can post your question and our members will help you out.