i am designing a webpage which should support the all languages utf-8
. unfortunately some language characters are not recognising on IE but it loks fine on mozilla & chrome, why ?
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html> <head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head> <body>
<p>Chinese Text : 您好世界 </p>
<p> Indian text : हेलो विश्व </p>
</body>
</html>
but when i remove the very first line, characters shows on internet explorer (IE)
too.
Removed : <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
Can someone explain please, what should be correct doctype declaration for multilingual support.
Your charset
is currently set to ISO-8859-1
, which is the character set for Western European characters. Change it to UTF-8
to have support for all the Unicode characters:
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With