ONE Active Server Pages Product Home Page Developer Site Version


@CODEPAGE Directive

This directive specifies how literal (static) strings are encoded in a Web page. Code pages are character sets and are important in international applications. Code pages are not the same for all languages. Setting the @CODEPAGE directive explicitly affects literal strings in a single response.

The syntax for this directive is as follows:

<%@ CODEPAGE=codepage %>

The parameters are as follows:


An integer that represents the character formatting code page. For a list of the code page integers for the languages supported by Sun ONE ASP, see Configuring International Support.

Take note of the following:

See also:

Developing International Applications

Configuring International Support

ASP Session Object CodePage Property