discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: plists in UTF8


From: Pete French
Subject: Re: plists in UTF8
Date: Wed, 14 Jun 2006 14:35:49 +0100

> If it's XML then you are required to assume its UTF-8 unless you
> have indications to the contrary aren't you ? I thought that was
> part of the XML specification.

Answering my own email, from the specification:

    "In the absence of information provided by an external transport
    protocol (e.g. HTTP or MIME), it is a fatal error for an entity
    including an encoding declaration to be presented to the XML processor
    in an encoding other than that named in the declaration, or for an
    entity which begins with neither a Byte Order Mark nor an encoding
    declaration to use an encoding other than UTF-8. Note that since
    ASCII is a subset of UTF-8, ordinary ASCII entities do not strictly
    need an encoding declaration."

so if we have no BOM or encoding declaration we must assume UTF-8.

-bat.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]