[Home] [By Thread] [By Date] [Recent Entries]
> Are there any encodings that have the same encoding of <?xml but > completely different encodings for other characters? Yes lots but most of them agree on all of the first 128 slots which is why the xml declaration is restricted to repertoire. so if you read those bytes and figure it looks like ASCII, then that is enough to read as far as encoding="iso-8859-1" or encoding="utf-8" etc, all the iso 8859 encodings, utf8, most european regional encodings on windows, mac etc all agree the encoding of <?xml (and on on enough characters that the encoding declaration may be read) but differ in the encoding of characters above 127. The parser just needs to know the encoding is sufficiently like ascii, and not (say) utf-16 or ebcdic to read the declaration. David ________________________________________________________________________ The Numerical Algorithms Group Ltd is a company registered in England and Wales with company number 1249803. The registered office is: Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom. This e-mail has been scanned for all viruses by Star. The service is powered by MessageLabs. ________________________________________________________________________
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] |

Cart



