Re: character entities in UTF-8 files

From: Doug Ewell (dewell@adelphia.net)
Date: Tue Jul 12 2005 - 23:52:23 CDT

  • Next message: Elliotte Harold: "Re: character entities in UTF-8 files"

    Eric Muller <emuller at adobe dot com> wrote:

    >> HTML and XML require you to use the entities &amp; and &lt; even in a
    >> UTF-8-encoded file.
    >
    > XML does not require that in a CDATA section: "<![CDATA[x<y]]>" is a
    > fine way to serialize the character content "x<y". Another fine point
    > is that the character content ">" can be serialized as "&gt;" or ">"
    > in general, but must be serialized as "&gt;" when it follows "]]" in a
    > CDATA section (because ]]> marks the end of a CDATA section).

    I left that out on purpose, since CDATA sections don't follow the same
    rules as the rest of XML, and are basically a special case.

    --
    Doug Ewell
    Fullerton, California
    http://users.adelphia.net/~dewell/
    


    This archive was generated by hypermail 2.1.5 : Tue Jul 12 2005 - 23:58:42 CDT