Skip to content

Commit

Permalink
Поправлена ошибка с установкой utf-8 в именах файлов при передаче чер…
Browse files Browse the repository at this point in the history
…ез ftp
  • Loading branch information
sergey-golovkin committed Jul 20, 2023
1 parent c1b897d commit f163cc7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<groupId>org.apache.camel</groupId>
<artifactId>camel-smev</artifactId>
<packaging>jar</packaging>
<version>3.1.8-1.20230720</version>
<version>3.1.8-1.20230721</version>
<name>camel-smev3</name>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
Expand All @@ -43,7 +44,6 @@ else if(parts.length == 2)

LOGGER.debug("connected to: \"{}\"", config.getAddress());
ftpClient.enterLocalPassiveMode();
ftpClient.setControlEncoding("UTF-8");
}
catch (Exception ex)
{
Expand Down

0 comments on commit f163cc7

Please sign in to comment.