Skip to content

Commit

Permalink
Defaults the characterset encoding to UTF-8 (#6)
Browse files Browse the repository at this point in the history
This change allows converting files with filenames that are not present in the current US-ASCII charset

With the current US-ASCII charset, the error ´java.nio.file.InvalidPathException: Malformed input or input contains unmappable characters: Ødegaard.docx´ is thrown when trying to convert files with UTF-8 characters (like Æ, Ø and Å in Norway)
  • Loading branch information
Tmfwang authored Jan 17, 2025
1 parent 885347a commit 852eb1d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ ENV PATH "${JAVA_HOME}/bin:${PATH}"
ENV NONPRIVUSER=jodconverter
ENV NONPRIVGROUP=jodconverter

# Set default characterset encoding to UTF-8
ENV LANG=C.UTF-8
ENV LC_ALL=C.UTF-8

COPY --from=jresource /jre $JAVA_HOME

# using backports for libreoffice 24.x (bookworm has 7.x)
Expand Down

0 comments on commit 852eb1d

Please sign in to comment.