What is the difference between this &
and this &
for &(ampersand)? What should be use with utf8 ?
相关问题
- Views base64 encoded blob in HTML with PHP
- Is there a way to play audio on a mobile browser w
- HTML form is not sending $_POST values
- implementing html5 drag and drop photos with knock
-
Why does the box-shadow property not apply to a
Both are character references and refer to the same character (AMPERSAND, U+0026).
&
is a named or entity character reference and&
is a numerical character reference.In fact,
&
is actually just a substitution for&
(see list of character entities):http://www.xml.com/pub/a/2001/01/31/qanda.html
According to O'Reilly you should be using & in xml. UTF-8 is quite a bit different. http://www.fileformat.info/info/unicode/char/0026/index.htm
No difference. Utf-8 doesn't matter because & is reserved anyway. So use &