I was looking a source code of a particular page of my project and noticed that FF transforms special characters such as "á" to á
.
Which encodification is that? Thanks!!
I was looking a source code of a particular page of my project and noticed that FF transforms special characters such as "á" to á
.
Which encodification is that? Thanks!!
HTML ASCII Character Encoding. Here's a table of many of them:
It's Numeric character references as defined in the HTML 4.01 Specification.
I suspect it is the other way round; Firefox and Chrome take á
in the HTML source code and render it as the character á ("Latin small a with acute").
The reason for allowing these in HTML is that the HTML might be supplied in an encoding which doesn't support the character. Any Unicode character is allowed, but it may not get rendered correctly if your browser doesn't have that character in any of its fonts.
As it says in the W3C HTML spec, there are two ways of encoding arbitrary Unicode characters:
&#D;
: where D
is the decimal value of the Unicode character (e.g. á
)&#xH;
: where H
is the (case-insensitive) hexadecimal value of the Unicode character, e.g. 1
in your case