Why are there two different HTML entities formats and what is their difference? -


when encoding text html entities, noticed there 2 formats. example, string

ç á ê 

can encoded to

ç á ê 

or

ç á ê 

is there advantage of 1 on other? why there 2 formats?

one unicode values characters , other shorthand html defines these specific characters. same end result first example easier humans understand when looking @ code (without cross referencing http://www.unicode.org/charts/). you'd use unicode approach characters don't have shorthand equivalents.


Comments

Popular posts from this blog

java - activate/deactivate sonar maven plugin by profile? -

python - TypeError: can only concatenate tuple (not "float") to tuple -

java - What is the difference between String. and String.this. ? -