How to convert your HTML pages from ISO to UTF8
Posted: 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>