Skip to content

Commit

Permalink
use UTF8 encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
gessnerfl committed Oct 15, 2023
1 parent 2cf7d65 commit 2749d1f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/de/gessnerfl/fakesmtp/smtp/server/Session.java
Original file line number Diff line number Diff line change
Expand Up @@ -281,8 +281,8 @@ private void closeConnection() {
public void setSocket(final Socket socket) throws IOException {
this.socket = socket;
this.input = this.socket.getInputStream();
this.reader = new CRLFTerminatedReader(this.input, StandardCharsets.US_ASCII);
this.writer = new PrintWriter(new OutputStreamWriter(this.socket.getOutputStream(), StandardCharsets.US_ASCII));
this.reader = new CRLFTerminatedReader(this.input,StandardCharsets.UTF_8);
this.writer = new PrintWriter(new OutputStreamWriter(this.socket.getOutputStream(), StandardCharsets.UTF_8));

this.socket.setSoTimeout(CONNECTION_TIMEOUT);
}
Expand Down

0 comments on commit 2749d1f

Please sign in to comment.