ASP.NET server.execute a UTF-8 file

Discussion in 'ASP .Net' started by RedHair, Aug 1, 2006.

  1. RedHair

    RedHair Guest

    Dear all,

    I am developing a ASP.NET 2.0 application, since there are lots of html
    content files which
    are saved in UTF-8 format in this application. Which is best way to display
    it with the master page?

    If using Server.Execute(UTF-8_filename), then the content will be shown
    correctly but in the top
    of the page, I think it is because I placed server.execute() in Page_Load
    event.

    If using Server.Execute (UTF-8_Filename, System.IO.StringWriter sw) +
    Response.Write(sw.tostring()),
    the content is displayed in garbage code.

    Thanks in advance!
     
    RedHair, Aug 1, 2006
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. JJBW
    Replies:
    1
    Views:
    10,452
    Joerg Jooss
    Apr 24, 2004
  2. moonhkt
    Replies:
    18
    Views:
    2,605
    Roedy Green
    Feb 5, 2010
  3. Savas Ates
    Replies:
    1
    Views:
    298
    Patrice
    Aug 17, 2004
  4. InvestorTrade
    Replies:
    2
    Views:
    350
    InvestorTrade
    Mar 3, 2008
  5. Kioko --
    Replies:
    3
    Views:
    331
    Walton Hoops
    Mar 24, 2010
Loading...

Share This Page