Share on Google+Share on Google+

Page Directive attribute - pageEncoding

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 :

Advertisements

Posted on: November 30, 2012 If you enjoyed this post then why not add us on Google+? Add us to your Circles

Share this Tutorial 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.