How to change character encoding in the file
« on: September 12, 2009, 10:39:47 AM »
You can set character encoding using two ways:

[1] Using META:


To set character encoding using META, you willl just need to add following line in your <head> tag:

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

[2] Using XHTML:

Using XHTML, define the first line as follow:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

Kailash