asciidoctor / asciidoctor-gradle-plugin

A Gradle plugin that uses Asciidoctor via JRuby to process AsciiDoc source files within the project.
https://asciidoctor.github.io/asciidoctor-gradle-plugin/
Apache License 2.0
283 stars 120 forks source link

Include with explicit encoding doesn't work #687

Open chkpnt opened 9 months ago

chkpnt commented 9 months ago

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").