[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: asciidoctor-pdf



On Sat, Oct 26, 2024 at 10:06:10AM -0500, Tom Browder wrote:
> I am running Debian 11 and trying to run asciidoctor and
> asciidoctor-pdf with no luck so far.

[...]

> `block (2 levels) in parse!'
> /usr/lib/ruby/vendor_ruby/asciidoctor/cli/options.rb:87:in `encode':
> "\\xE2" from ASCII-8BIT to UTF-8 (Encoding::UndefinedConversionError)

This looks a bit as if the thing were receiving a character encoding it
doesn't expect.

FWIW, hex E2 would be "â" in Latin-1 (ISO-8859-1, more precisely). I
don't know which kind of input asciidoctor needs (beyond ASCII, that
is).

What you can do is

 - find out whether it's specific characters in your input
  which trigger the problem

 - experiment with iconv (e.g. iconv -f ISO-8859-1 -t UTF-8 < from > to)

Perhaps there's an option to asciidoctor to tell it what your file's
enccding is supposed to be.

Perhaps, also, your file is UTF-8 and asciidoctor guesses so,but there
are some "bad" sequences strewn in.

HTH
-- 
tomás

Attachment: signature.asc
Description: PGP signature


Reply to: