[sword-devel] Encoding=UTF-8

Chris Little sword-devel@crosswire.org
Sun, 26 Aug 2001 18:07:05 -0700

> for modules that are encoded using :Encoding=UTF-8.  What 
> Filter do I need 
> to use so the text doesn't come out garbled?
> For the 1894 Scrivener Textus Receptus and 1550 Stephanus 
> Textus Receptus 
> and the Interlinear Greek New Testament, I tried using the 
> UnicodeRTF Filter 
> and it gave me an error in the ProcessText routine.  I've 
> actually tried 
> several filters and none of them seam to work.
> What am I doing wrong?

What kind of output are you trying to get?

Using UnicodeRTF should convert the UTF-8 to RTF escapes, so you would
use that if you're looking to do RTF output.  If you're doing HTML or
ThML output, you just need to add something like <meta
http-equiv="Content-Type" content="text/html;charset=UTF-8"> at the
beginning of your output page and make sure all output is UTF-8 by using
the Latin1UTF8 filter on all non-UTF-8 encoded texts.

Other output formats would need new filters to be written for them,
assuming they can support Unicode.