ASP.NET server.execute a UTF-8 file

R

RedHair

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!
 

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

Ask a Question

Similar Threads


Members online

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top