Skip to content
Permalink
Browse files
Sporbugs: Explicitely use default charset.
  • Loading branch information
garydgregory committed Jul 23, 2020
1 parent 005adca commit 726bd7888da149e4eb90f59c497c719001550e70
Showing 1 changed file with 2 additions and 1 deletion.
@@ -25,6 +25,7 @@
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.nio.charset.Charset;

/**
* Static helper methods.
@@ -127,7 +128,7 @@ public static MimeMessage createMimeMessage(final Session session, final String

try
{
final byte[] byteSource = source.getBytes();
final byte[] byteSource = source.getBytes(Charset.defaultCharset());
is = new ByteArrayInputStream(byteSource);
return createMimeMessage(session, is);
}

0 comments on commit 726bd78

Please sign in to comment.