A UCS-2 file starts with the byte order mark (BOM), \xFEFF. The
ordering of the two bytes shows whether the document is big-endian or
little-endian.
>From 4.3.3:
Entities encoded in UTF-16 must begin with the Byte Order Mark
described by ISO/IEC 10646 Annex E and Unicode Appendix B (the ZERO
WIDTH NO-BREAK SPACE character, #xFEFF). This is an encoding
signature, not part of either the markup or the character data of the
XML document. XML processors must be able to use this character to
differentiate between UTF-8 and UTF-16 encoded documents.
What's unsaid is that UCS-2 and UTF-16 are the same.
-Chris
-- <!NOTATION SGML.Geek PUBLIC "-//Anonymous//NOTATION SGML Geek//EN"> <!ENTITY crism PUBLIC "-//O'Reilly//NONSGML Christopher R. Maden//EN" "<URL>http://www.oreilly.com/people/staff/crism/ <TEL>+1.617.499.7487 <USMAIL>90 Sherman Street, Cambridge, MA 02140 USA" NDATA SGML.Geek>