Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #274080

Re: asciidoctor-pdf

From <tomas@tuxteam.de>
Newsgroups linux.debian.user
Subject Re: asciidoctor-pdf
Date 2024-10-26 18:10 +0200
Message-ID <JBRwt-4ny3-3@gated-at.bofh.it> (permalink)
References <JBQAp-4mZJ-7@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

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

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

asciidoctor-pdf Tom Browder <tom.browder@gmail.com> - 2024-10-26 17:10 +0200
  Re: asciidoctor-pdf <tomas@tuxteam.de> - 2024-10-26 18:10 +0200
    Re: asciidoctor-pdf Tom Browder <tom.browder@gmail.com> - 2024-10-26 22:30 +0200
  Re: asciidoctor-pdf Jeffrey Walton <noloader@gmail.com> - 2024-10-26 23:30 +0200
  Re: asciidoctor-pdf Jeffrey Walton <noloader@gmail.com> - 2024-10-26 23:40 +0200

csiph-web