[as2api-dev] latin characteres

David Holroyd dave at badgers-in-foil.co.uk
Wed Jan 18 07:40:56 UTC 2006


On Wed, Jan 18, 2006 at 12:59:35AM -0200, Andrei R. Thomaz wrote:
> i tried to use AS2API, and it's nice, but it doesn't work fine with 
> latin characteres (? ? etc.). I tried the windows version ;-)

What encoding, specifically are the input files using?

as2api (effectively) assumes that files are in ISO-8859-1, unless:

- it spots a unicode Byte-Order-Marker at the start of the file, in which
  case the generated HTML is marked as using UTF-8

- the '--encoding xxx' option is given on the commandline, in which case
  the genenerated HTML is marked as using encoding 'xxx'

Note also that, currently, as2api doesn't translate the encoding of
characters from the source files -- it just copies the text verbatim and
tries to set the appropriate 'charset' header in the HTML metadata.


Maybe you could attach and example of one of the files you're working
with which gives unexpected results?


thanks!
dave

-- 
http://david.holroyd.me.uk/



More information about the as2api-dev mailing list