Home Tutorial Jsp Page Directive attribute - pageEncoding

 
 

Share on Google+Share on Google+
Page Directive attribute - pageEncoding
Posted on: November 30, 2012 at 12:00 AM
Advertisement
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 :

Advertisement

Related Tags for Page Directive attribute - pageEncoding:


Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.

Posted on: November 30, 2012

Recommend the tutorial

Advertisements Advertisements
 

 

 

DMCA.com