How to convert your HTML pages from ISO to UTF8

Web hosting, SEO, etc... related
Post Reply
User avatar
Neo
Site Admin
Site Admin
Posts: 2642
Joined: Wed Jul 15, 2009 2:07 am
Location: Colombo

How to convert your HTML pages from ISO to UTF8

Post by Neo » Tue Dec 15, 2009 10:36 pm

This is required when you need to show special characters like í, é, ã. The important thing is, you need make your HTML pages correctly as below otherwise these characters will not be visible correctly particularly in search engines. (Make sure you put xml:lang="pt" lang="pt").

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="pt" lang="pt">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
</head>
<body>
</body>
</html>
Post Reply

Return to “Web Related”