Skip to content

Commit 221a95b

Browse files
committed
Use UTF-8 as the charset supported atop SMTP protocol
1 parent e8a4000 commit 221a95b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

protocols/api/src/main/java/org/apache/james/protocols/api/ProtocolSessionImpl.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,9 @@
1919

2020
package org.apache.james.protocols.api;
2121

22-
import static java.nio.charset.StandardCharsets.US_ASCII;
23-
2422
import java.net.InetSocketAddress;
2523
import java.nio.charset.Charset;
24+
import java.nio.charset.StandardCharsets;
2625
import java.util.HashMap;
2726
import java.util.Map;
2827
import java.util.Optional;
@@ -216,7 +215,7 @@ public <T> Optional<T> getAttachment(AttachmentKey<T> key, State state) {
216215
*/
217216
@Override
218217
public Charset getCharset() {
219-
return US_ASCII;
218+
return StandardCharsets.UTF_8;
220219
}
221220

222221
/**

0 commit comments

Comments
 (0)