I use ASP.NET. In my document I use:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
I would like to know if it is necessary to add also this Meta tag:
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
You should add the meta tag, though it is not compulsory.
The DOCTYPE
doesn't not automatically tell you what the character set is, so you should add the information that the file is encoded as UTF-8
.
You should also ensure the content-type
HTTP header is also set to UTF-8
.