Page Directive attribute - pageEncoding


 

Page Directive attribute - pageEncoding

This tutorial contains description of pageEncoding attribute of page Directive.

This tutorial contains description of pageEncoding attribute of page Directive.

Page Directive attribute - pageEncoding

This tutorial contains description of pageEncoding attribute of page Directive.

pageEncoding Attribute :

Page directive provides pageEncoding attribute to specify the language that the page uses when the page is sent to the browser. You can say, it is the character encoding in which the file is encode. If there is any unsupported page encoding then the container raises a translation-time error.

Default pageEncoding value is "ISO-8859-1"

Syntax :

<%@page pageEncoding="ISO-8859-1" %>

Example :

<%@page pageEncoding="ISO-8859-1"%>
<html>
<head>
<title>pageEncoding attribute.</title>
</head>
<body>
<font color="blue" size="5"> 
This is pageEncoding attribute of page directive 
</font>

</body>
</html>

Output :

Ads