default encoding

James Clark jjc at jclark.com
Sat Nov 13 18:09:10 GMT 1999


Tim Bray wrote:
> 
> At 01:50 PM 11/12/99 -0600, Volkmann, Mark wrote:
> >If I start an XML document with
> ><?xml version="1.0"?>
> >what is the default encoding?
> >Is it just determined based on the first four bytes?
> 
> UTF-8 unless otherwise specified. -T.

Or unless the first two bytes are a byte order mark, in which case it is
UTF-16.

James



xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev at ic.ac.uk
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ and on CD-ROM/ISBN 981-02-3594-1
To unsubscribe, mailto:majordomo at ic.ac.uk the following message;
unsubscribe xml-dev
To subscribe to the digests, mailto:majordomo at ic.ac.uk the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa at ic.ac.uk)





More information about the Xml-dev mailing list