mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-19 05:38:31 +00:00
Whois: allow UTF8
This commit is contained in:
parent
bf348302bc
commit
45ea1f95d1
1 changed files with 2 additions and 2 deletions
|
@ -45,9 +45,9 @@ public class Whois {
|
|||
Socket socket = new Socket();
|
||||
socket.connect(new InetSocketAddress(host, port), WHOIS_TIMEOUT);
|
||||
try {
|
||||
byte[] request = (domain + "\r\n").getBytes(StandardCharsets.ISO_8859_1);
|
||||
byte[] request = (domain + "\r\n").getBytes(StandardCharsets.UTF_8);
|
||||
socket.getOutputStream().write(request);
|
||||
String response = Helper.readStream(socket.getInputStream(), StandardCharsets.ISO_8859_1);
|
||||
String response = Helper.readStream(socket.getInputStream(), StandardCharsets.UTF_8);
|
||||
return host + ":" + port + "\n\n" + response;
|
||||
} finally {
|
||||
socket.close();
|
||||
|
|
Loading…
Reference in a new issue