asciidoctor/asciidoctor-gradle-plugin

Include with explicit encoding doesn't work

Open

#687 opened on Oct 12, 2023

View on GitHub
 (1 comment) (0 reactions) (0 assignees)Groovy (110 forks)batch import
help wanted

Repository metrics

Stars
 (265 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

I've an ISO 8859-1 encoded file, which I'm Including like this:

[source]
----
include::assets/application.properties[encoding=iso-8859-1]
----

This works fine with IntelliJ Plugin AsciiDoc v0.39.7 and on the command line with Asciidoctor v2.0.20. But it doesn't when using the Gradle plugin v3.3.2, which gives me an AsciidoctorCoreException ("Failed to load AsciiDoc document - invalid byte sequence in UTF-8").

Contributor guide