An XML file can be of any encoding. The encoding is given in the XML
declaration e.g. <?xml version="1.0" encoding="ISO-2022"?> for JIS), and
it is up to the processor to handle the encoding. As was pointed out
earlier, the XML spec requires conforming processors to at least support
utf-8 and utf-16 encoding.
OpenDocument makes no encoding restrictions beyond those of put down in
the XML spec.
If there is any issue with XML not being able to support a specific
encoding (not that I am aware of any), this is clearly an XML/processor
issue, not an OpenDocument issue.
/lars
Daniel Carrera wrote:
> Charles-H.Schulz wrote:
>> In theory, if you use an encoding that is different from utf-8 the xml
>> files will get broken and so will be the entire document (at least it
>> won't be human readable). That said, it is not always the case.
>> Maybe we should try to see what could be done in regard of ODF and
>> 'unorthodox' encodings.
>> If someone has an idea here, feel free to comment.
>
> Is there any encoding that can represent characters that cannot be
> represented in UTF-8? If so, we may have an issue. If not, then we
> should just require UTF-8. Unicode is supposed to be able to represent
> any character from other encodings. I don't know if it actually does
> that, but I'm not aware of any encoding that can't be mapped to Unicode.
>
> Cheers,
> Daniel.
--
Lars Oppermann <> Sun Microsystems
Software Engineer - StarOffice Sachsenfeld 4
Phone: +49 40 23646 959 D-20097 Hamburg
Fax: +49 40 23646 550 http://www.sun.com/staroffice