1
0
mirror of https://github.com/Stirling-Tools/Stirling-PDF.git synced 2024-11-11 02:10:11 +01:00

feat: Force UTF-8 encoding of input characters

This commit is contained in:
Nicolas 2024-05-29 22:09:09 +02:00
parent 01b2613efe
commit f61bbd312f
No known key found for this signature in database
GPG Key ID: E62A59B54FE9AEB3

View File

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