|
From: John F. <jf...@in...> - 2002-05-10 01:45:22
|
On Thu, 2002-05-09 at 07:09, John Fleck wrote: > Folks - > > What are the encoding requirements for an omf file? > > I'm getting the following error: > > ggv-ja.omf:5: error: Input is not proper UTF-8, indicate encoding ! > > It appears I can solve this by adding an encoding="ISO-8859-1" to the > xml declaration, but I wanted to be sure I'm doing this right. > Thanks for that very good question, John! Unless the document's encoding is declared otherwise, libxml (and therefore ScrollKeeper) assumes UTF-8: http://xmlsoft.org/encoding.html "If there is no encoding declaration, then the input has to be in either UTF-8 or UTF-16, if it is not then at some point when processing the input, the converter/checker of UTF-8 form will raise an encoding error. You may end-up with a garbled document, or no document at all !" This means that in the case of OMF files in other encodings (like the one for ggv that started this discussion) we need to specify the encoding in the xml declaration. The encodings that seem to be of importance to us: 1. UTF-8 is supported by default (null handlers) 2. UTF-16, both little and big endian 3. ISO-Latin-1 (ISO-8859-1) covering most western languages Cheers, John -- John Fleck jf...@in... (h) jf...@ab... (w) http://www.inkstain.net http://www.abqjournal.com "You don't want to die with the music still in you." - John Gardner |