In Blogger , exceptional characters most of the fourth dimension appear correctly , simply when it is virtually other services , similar external files , things tin larn complicated.
For instance , this commonly looks practiced in addition to when you lot click, you lot should run across the letters inward the right way:
alert(” á é í ó ú ☺ ✛ ❤ “);
If nosotros are trying to role other method in addition to nosotros desire to role this type of characters , sometimes nosotros involve to write them inward a exceptional format called escape sequence which is null simply a backslash followed yesteryear a missive of the alphabet in addition to a publish inward hexadecimal format. In the instance of mutual characters or accents , it would hold upwards x followed yesteryear 2 hex digits:
xe1 is the missive of the alphabet á
xe9 is the missive of the alphabet é
xed is the missive of the alphabet í
xf3 is the missive of the alphabet ó
xfa is the missive of the alphabet ú
Other combinations generate exceptional characters:
n is a work break
t is the tab character
‘ is unmarried quote
” is double quote
\ is a dorsum slash
Or nosotros tin role u followed yesteryear the Unicode grapheme code expressed every bit 4 hexadecimal digits:
u00e1 is the missive of the alphabet á
u00e9 is the missive of the alphabet é
u00ed is the missive of the alphabet í
u00f3 is the missive of the alphabet ó
u00fa is the missive of the alphabet ú
This volition allow us towhat nosotros couldn’t earlier if nosotros were using another services:
alert(” u263a u2764 u271b “);
On this page you lot tin respect a comprehensive listing of all the characters , both symbols in addition to dissimilar alphabets.
Although rare characters are non ofttimes used inward the CSS , at that spot is a instance when they are necessary every bit good , similar when using the content holding alongside the :after in addition to :before pseudo-elements.
The same criteria applies at that spot , simply nosotros alone involve to add together a backslash followed yesteryear the four-digit hexadecimal code. For example:
content: “:after 263a 2724 2602”;
Remember that IE doesn’t sympathise the :before pseudoclass alongside content , in addition to you lot would accept to educate the list-style-type holding every bit none , or you lot would larn 2 bullets inward CSS compliant browsers.