<%@ Page Language="vb" %> <html> <head> <title>Displaying Encoding in ASP.NET</title> <script runat="server"> Sub Page_Load() myMessage.Text = "Current encoding is " & _ Response.ContentEncoding.EncodingName & "</br>" myMessage.Text &= "Current encoding IANA name is " & _ Response.ContentEncoding.WebName & "</br>" End Sub </script> </head> <body> <asp:label id="myMessage" runat="server"/> </body> </html>