File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/ftp Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 2121import java .io .StringWriter ;
2222import java .io .Writer ;
2323import java .net .Proxy ;
24+ import java .nio .charset .Charset ;
2425import java .time .Duration ;
2526
2627import org .apache .commons .lang3 .Range ;
@@ -166,9 +167,9 @@ public void flush() {
166167 if (connectTimeout != null ) {
167168 client .setDefaultTimeout (DurationUtils .toMillisInt (connectTimeout ));
168169 }
169- final String controlEncoding = builder .getControlEncoding (fileSystemOptions );
170+ final Charset controlEncoding = builder .getControlEncodingCharset (fileSystemOptions );
170171 if (controlEncoding != null ) {
171- client .setControlEncoding (controlEncoding );
172+ client .setControlEncoding (controlEncoding . name () );
172173 }
173174 final Boolean autodetectUTF8 = builder .getAutodetectUtf8 (fileSystemOptions );
174175 if (autodetectUTF8 != null ) {
You can’t perform that action at this time.
0 commit comments