From f61bbd312f647f7f7fc8f82433c4f30821beefe5 Mon Sep 17 00:00:00 2001 From: Nicolas Date: Wed, 29 May 2024 22:09:09 +0200 Subject: [PATCH] feat: Force UTF-8 encoding of input characters --- src/main/java/stirling/software/SPDF/utils/FileToPdf.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/stirling/software/SPDF/utils/FileToPdf.java b/src/main/java/stirling/software/SPDF/utils/FileToPdf.java index 2a891c08..a381583c 100644 --- a/src/main/java/stirling/software/SPDF/utils/FileToPdf.java +++ b/src/main/java/stirling/software/SPDF/utils/FileToPdf.java @@ -42,6 +42,7 @@ public class FileToPdf { List command = new ArrayList<>(); if (!htmlFormatsInstalled) { command.add("weasyprint"); + command.add("-e utf-8"); command.add(tempInputFile.toString()); command.add(tempOutputFile.toString());