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 is necessary to add also this MetaTag:
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
Thanks for your tme on this.
You should add the meta tag, though it is not compulsory.
The
DOCTYPEdoesn’t not automatically tell you what the character set is, so you should add the information that the file is encoded asUTF-8.You should also ensure the
content-typeHTTP header is also set toUTF-8.