Skip to content

Commit

Permalink
Use UTF-8 encoding (#794)
Browse files Browse the repository at this point in the history
  • Loading branch information
sven1103 committed Aug 19, 2024
1 parent 83699ff commit 2b08aae
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,8 @@ private MimeMessage setupMessage(
Content content)
throws MessagingException {
var message = setupMessageWithoutContent(subject, recipient);
message.setContent(combineMessageWithRegards(content).value(), "text/plain");
message.setText(combineMessageWithRegards(content).value(), StandardCharsets.UTF_8.name(),
"plain");
return message;
}

Expand Down

0 comments on commit 2b08aae

Please sign in to comment.