OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Re: Defaul Encoding

[ Lists Home | Date Index | Thread Index ]
  • From: Tim Bray <tbray@textuality.com>
  • To: xml-dev@xml.org
  • Date: Fri, 21 Apr 2000 09:35:21 -0700

At 12:39 AM 4/21/00 -0400, Clark C. Evans wrote:
>On Thu, 20 Apr 2000, Rocky Raccoon wrote:
>> <?xml version = "1.0">
>> what does this equate to in terms of encoding ?
>
>It will try to auto-detect based on the first
>few bytes.  See the XML spec for details; it
>is towards the very bottom.

Er, no.  If there's no encoding= it must be in UTF-8 or UTF-16.  If it's
UTF-16, it has to have a BOM (Byte Order Mark), and this will enable 
autodection between -8 and -16.  Of course, if it's in pure ASCII (*not*
8859-1 or some MS codepage) that's also UTF-8. -Tim

***************************************************************************
This is xml-dev, the mailing list for XML developers.
To unsubscribe, mailto:majordomo@xml.org&BODY=unsubscribe%20xml-dev
List archives are available at http://xml.org/archives/xml-dev/
***************************************************************************




 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS