to escape or not to escape: well formed XHTML with diacritics
Posted
by
andresmh
on Stack Overflow
See other posts from Stack Overflow
or by andresmh
Published on 2011-02-27T23:04:41Z
Indexed on
2011/02/27
23:25 UTC
Read the original article
Hit count: 334
Say that you have a XHTML document in English but it has accented characters (e.g. meta name="author" content="José"
). Let's say you have no control over the HTTP headers.
Should the characters be replaced for their corresponding named entities (e.g.
á
, etc)?Should the doc type and the xml:lang attribute be set to English?
I know I can check the W3C recommendation but I am asking more from a practical point of view.
© Stack Overflow or respective owner