Skip to content

Commit

Permalink
Merge pull request #1326 from NicolasFR/feat/utf8-mdToPdf
Browse files Browse the repository at this point in the history
feat: Force UTF-8 encoding of input characters
  • Loading branch information
Frooodle committed May 30, 2024
2 parents 4a53195 + f61bbd3 commit f1476d1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/stirling/software/SPDF/utils/FileToPdf.java
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ public static byte[] convertHtmlToPdf(
List<String> command = new ArrayList<>();
if (!htmlFormatsInstalled) {
command.add("weasyprint");
command.add("-e utf-8");
command.add(tempInputFile.toString());
command.add(tempOutputFile.toString());

Expand Down

0 comments on commit f1476d1

Please sign in to comment.