Skip to content
Related Articles

Related Articles

ASP Session CodePage Property
  • Last Updated : 02 Mar, 2021
GeeksforGeeks - Summer Carnival Banner

The ASP Session CodePage Property is used to define a collection of characters that will be used to display the contents of a page in the Browser. Generally, the code page contains a character set that includes numbers, punctuation marks, and other glyphs. The CodePage property is read/write. This property is used to encoding a string in the intrinsic Object. The approach of Codepage is different in different languages. 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.

Following are some code pages:

  1. 1252 – American English and most European languages
  2. 932 – Japanese Kanji

Syntax:

Session.CodePage(=CodepageID)  

Parameter Values: It contains the values i.e Codepage which defines the character set that will provide the dynamic contents to the page. 

Example Code:  



Javascript




<%
Response.Write(Session.CodePage)
%>

Output:

1252

Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the DSA Self Paced Course at a student-friendly price and become industry ready.

My Personal Notes arrow_drop_up
Recommended Articles
Page :