• Welcome to Web Hosting Community Forum for Webmasters - Web hosting Forum.
 

Recommended Providers

Fully Managed WordPress Hosting
lc_banner_leadgen_3
Fully Managed WordPress Hosting

WordPress Theme

Divi WordPress Theme
WPZOOM

Forum Membership

Forum Membership

How to change character encoding in the file

Started by Kailash, September 12, 2009, 10:39:47 AM

Kailash

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