Merge pull request #1326 from NicolasFR/feat/utf8-mdToPdf

feat: Force UTF-8 encoding of input characters
This commit is contained in:
Anthony Stirling 2024-05-30 20:53:58 +01:00 committed by GitHub
commit f1476d197f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -42,6 +42,7 @@ public class FileToPdf {
List<String> command = new ArrayList<>();
if (!htmlFormatsInstalled) {
command.add("weasyprint");
command.add("-e utf-8");
command.add(tempInputFile.toString());
command.add(tempOutputFile.toString());