• Re: asciidoctor-pdf

    From tomas@tuxteam.de@21:1/5 to Tom Browder on Sat Oct 26 18:10:01 2024
    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

    -----BEGIN PGP SIGNATURE-----

    iF0EABECAB0WIQRp53liolZD6iXhAoIFyCz1etHaRgUCZx0TTwAKCRAFyCz1etHa RsGCAJ9/bd/EdVC6DHI3H5dGlBhh2jJAagCeJa5mJIjzKi3rpIisavnrFmCG7Q8=
    =UHNb
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)