Always specify charset for email addresses

This commit is contained in:
M66B
2020-07-10 10:07:53 +02:00
parent 900348b9d8
commit af45824fd8
6 changed files with 14 additions and 10 deletions

View File

@@ -81,6 +81,7 @@ import java.io.OutputStream;
import java.io.UnsupportedEncodingException;
import java.lang.reflect.Array;
import java.net.SocketException;
import java.nio.charset.StandardCharsets;
import java.security.cert.CertPathValidatorException;
import java.text.DateFormat;
import java.util.ArrayList;
@@ -1422,7 +1423,7 @@ public class Log {
}
static InternetAddress myAddress() throws UnsupportedEncodingException {
return new InternetAddress("marcel+fairemail@faircode.eu", "FairCode");
return new InternetAddress("marcel+fairemail@faircode.eu", "FairCode", StandardCharsets.UTF_8.name());
}
static boolean isSupportedDevice() {