diff --git a/pom.xml b/pom.xml index 002193b..5275e04 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ org.apache.camel camel-smev jar - 3.1.8-1.20230720 + 3.1.8-1.20230721 camel-smev3 UTF-8 diff --git a/src/main/java/org/apache/camel/component/smev3/utils/ApacheFTPTransport.java b/src/main/java/org/apache/camel/component/smev3/utils/ApacheFTPTransport.java index aecd04d..ab505b2 100644 --- a/src/main/java/org/apache/camel/component/smev3/utils/ApacheFTPTransport.java +++ b/src/main/java/org/apache/camel/component/smev3/utils/ApacheFTPTransport.java @@ -30,6 +30,7 @@ private void connect(String login, String password) throws SMEVRuntimeException { try { + ftpClient.setControlEncoding("UTF-8"); String[] parts = config.getAddress().split(":", 2); if(parts.length == 1) ftpClient.connect(parts[0]); @@ -43,7 +44,6 @@ else if(parts.length == 2) LOGGER.debug("connected to: \"{}\"", config.getAddress()); ftpClient.enterLocalPassiveMode(); - ftpClient.setControlEncoding("UTF-8"); } catch (Exception ex) {