WiserAssertions: avoid using default characterset

Signed-off-by: Paul Campbell <paulcampbell@fife.ac.uk>
This commit is contained in:
Paul Campbell 2015-10-16 15:43:40 +01:00
parent c305cd4371
commit 794d37e72c

View file

@ -5,7 +5,6 @@ import org.subethamail.wiser.WiserMessage;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.OutputStream;
import java.text.MessageFormat;
import java.util.List;
import java.util.function.Predicate;
@ -268,9 +267,9 @@ public final class WiserAssertions {
*/
private String getMimeMultipartAsString(final MimeMultipart mimeMultipart)
throws MessagingException, IOException {
OutputStream os = new ByteArrayOutputStream();
ByteArrayOutputStream os = new ByteArrayOutputStream();
mimeMultipart.writeTo(os);
return os.toString();
return os.toString("UTF-8");
}
/**