WiserAssertions: avoid using default characterset
Signed-off-by: Paul Campbell <paulcampbell@fife.ac.uk>
This commit is contained in:
parent
c305cd4371
commit
794d37e72c
1 changed files with 2 additions and 3 deletions
|
@ -5,7 +5,6 @@ import org.subethamail.wiser.WiserMessage;
|
||||||
|
|
||||||
import java.io.ByteArrayOutputStream;
|
import java.io.ByteArrayOutputStream;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.io.OutputStream;
|
|
||||||
import java.text.MessageFormat;
|
import java.text.MessageFormat;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.function.Predicate;
|
import java.util.function.Predicate;
|
||||||
|
@ -268,9 +267,9 @@ public final class WiserAssertions {
|
||||||
*/
|
*/
|
||||||
private String getMimeMultipartAsString(final MimeMultipart mimeMultipart)
|
private String getMimeMultipartAsString(final MimeMultipart mimeMultipart)
|
||||||
throws MessagingException, IOException {
|
throws MessagingException, IOException {
|
||||||
OutputStream os = new ByteArrayOutputStream();
|
ByteArrayOutputStream os = new ByteArrayOutputStream();
|
||||||
mimeMultipart.writeTo(os);
|
mimeMultipart.writeTo(os);
|
||||||
return os.toString();
|
return os.toString("UTF-8");
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue