[I18n-sig] XML and UTF-16

Tom Emerson tree@basistech.com
Thu, 31 May 2001 17:23:00 -0400


Paul Prescod writes:
> Tom Emerson wrote:
> > Yes. You can then pretty easily autodetect the which Unicode
> > transformation format is being used by looking at the first ten or
> > so bytes.
> 
> Actually, the first four bytes are sufficient to get you started. Then
> you have to look at the encoding declaration if present.

Even for UTF-32?

    -tree

-- 
Tom Emerson                                          Basis Technology Corp.
Sr. Sinostringologist                              http://www.basistech.com
  "Beware the lollipop of mediocrity: lick it once and you suck forever"