![]() |
![]() | ![]() | ![]() | Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - Re: UTF-8 & Unicode >Thread Next - Re: UTF-8 & Unicode Re: UTF-8 & UnicodeTo: NULL Date: 2/4/2005 5:15:00 PM In article <Pine.LNX.4.61.0502021006440.5995@p...>, "Alan J. Flavell" <flavell@p...> wrote: > The /conclusions/ are fine, in their way: > > * Use an editor that supports encoding. > * Make sure you know what encoding it uses. > * Use the same encoding attribute in your XML documents. That is not a safe conclusion. XML processors are only required to support UTF-8 and UTF-16. Support for any other encoding is an XML processor-specific extra feature. It follows that using any encoding other than UTF-8 or UTF-16 is unsafe. If communication fails, because someone sent an XML document in an encoding other than UTF-8 or UTF-16, the sender is to blame. This simplifies to a rule of thumb: When producing XML, always use UTF-8 (and Unicode Normalization Form C). Those who absolutely insist on using UTF-16 can use UTF-16 instead of UTF-8. -- Henri Sivonen hsivonen@i... http://iki.fi/hsivonen/ Mozilla Web Author FAQ: http://mozilla.org/docs/web-developer/faq.html | ![]() | ![]() | ![]() |
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | |||||
|
