ASP.NET(vb.net) Session.CodePage() - Session Object - Session.CodePage() : For all responses in a session, the Session.CodePage property specifies how strings are encoded in the intrinsic objects. A code page is a character set that can include numbers, punctuation marks, and other glyphs. Codepages are not the same for each language. Some languages, such as Japanese and Hindi, have multibyte characters, while others, such as English and German, only need one byte to represent each character.The CodePage property is read/write.
ShotDev Focus:
- ASP.NET(vb.net) Session.CodePage() - Session Object
Example
AspNetSessionCodePage.aspx
- <%@ Page Language="VB" %>
- <script runat="server">
- Sub Page_Load(sender As Object, e As EventArgs)
- Session.CodePage = "932"
- Me.lblText1.Text = "本的味"
- End Sub
- </script>
- <html>
- <head>
- <title>ShotDev.Com Tutorial</title>
- </head>
- <body>
- <form runat="server">
- <asp:Label id="lblText1" runat="server"></asp:Label><br />
- </form>
- </body>
- </html>
Screenshot