I am working on a HTML5 website, using UTF-8 charset.
I tried to use the (double curly quotes) “” directly on my page, but they are not appearing as they should and showing a weird character instead. I changed my browser’s character encoding to Western (ISO-8859-1) and the quotes started showing.
I thought this was supported in UTF-8 Charset? or am i wrong?
The HTML Entities on the other hand are working perfectly, “ and ”
From the symptoms, it seems that the actual encoding of your HTML document is not UTF-8 but windows-1252 (not ISO-8859-1, which does not contain curly quotes at all—but most browsers actually use window-1252 when told to use ISO-8859-1).
This depends on the way you have saved your HTML document. It is normally an option in an editor or other authoring tool to set the encoding.