<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: tFTPConnection: The encoding can not be changed for this sftp server. in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tFTPConnection-The-encoding-can-not-be-changed-for-this-sftp/m-p/2287495#M61075</link>
    <description>If I turn the encoding to UTF-8 instead of the default, it will work in Talend 5.6.
&lt;BR /&gt;Checking the code for com.jcraft.jsch 
&lt;A href="http://www.docjar.org/html/api/com/jcraft/jsch/ChannelSftp.java.html" target="_blank" rel="nofollow noopener noreferrer"&gt;here:&lt;/A&gt;
&lt;BR /&gt;2392 &amp;nbsp; public void setFilenameEncoding(String encoding) throws SftpException{
&lt;BR /&gt;2393 &amp;nbsp; int sversion=getServerVersion();
&lt;BR /&gt;2394 &amp;nbsp; if(sversion &amp;gt; 3 &amp;amp;&amp;amp; 
&lt;BR /&gt;2395 &amp;nbsp; !encoding.equals(UTF8)){
&lt;BR /&gt;2396 &amp;nbsp; throw new SftpException(SSH_FX_FAILURE, 
&lt;BR /&gt;2397 &amp;nbsp; "The encoding can not be changed for this sftp server.");
&lt;BR /&gt;2398 &amp;nbsp; }
&lt;BR /&gt;2399 &amp;nbsp; if(encoding.equals(UTF8)){
&lt;BR /&gt;2400 &amp;nbsp; encoding=UTF8;
&lt;BR /&gt;2401 &amp;nbsp; }
&lt;BR /&gt;2402 &amp;nbsp; fEncoding=encoding;
&lt;BR /&gt;2403 &amp;nbsp; fEncoding_is_utf8=fEncoding.equals(UTF8);
&lt;BR /&gt;2404 &amp;nbsp; }
&lt;BR /&gt;2405 &amp;nbsp; 
&lt;BR /&gt;2406 &amp;nbsp; public String getExtension(String key){
&lt;BR /&gt;2407 &amp;nbsp; if(extensions==null)
&lt;BR /&gt;2408 &amp;nbsp; return null;
&lt;BR /&gt;2409 &amp;nbsp; return (String)extensions.get(key);
&lt;BR /&gt;2410 &amp;nbsp; }
&lt;BR /&gt;2411 &amp;nbsp; 
&lt;BR /&gt;I would assume that this was a change to the setFilenameEncoding method that is in Talend 5.6, but not 5.5, that requires UTF8 if the SFTP server version if &amp;gt; 3.</description>
    <pubDate>Wed, 08 Jul 2015 22:10:19 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-07-08T22:10:19Z</dc:date>
    <item>
      <title>tFTPConnection: The encoding can not be changed for this sftp server.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFTPConnection-The-encoding-can-not-be-changed-for-this-sftp/m-p/2287494#M61074</link>
      <description>I uploaded from Talend 5.5 to Talend 5.6 and now my tFTPConnection is broken. It is pointed to the same FTP server and configured the same. If I run this job in Talend 5.5, it works as expected. 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MAxy.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/132484i3261D6E067C3C9C8/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MAxy.png" alt="0683p000009MAxy.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt;Here is the stack trace: 
&lt;BR /&gt;Exception in component tFTPConnection_1 
&lt;BR /&gt;4: The encoding can not be changed for this sftp server. 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at com.jcraft.jsch.ChannelSftp.setFilenameEncoding(ChannelSftp.java:2954) 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at talend56test.ftp56_0_1.FTP56.tFTPConnection_1Process(FTP56.java:411) 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at talend56test.ftp56_0_1.FTP56.runJobInTOS(FTP56.java:681) 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at talend56test.ftp56_0_1.FTP56.main(FTP56.java:520) 
&lt;BR /&gt;The Java line causing this error is: 
&lt;BR /&gt;c_tFTPConnection_1.setFilenameEncoding("ISO-8859-15"); 
&lt;BR /&gt;How can I fix this? 
&lt;BR /&gt;Thanks and best regards, 
&lt;BR /&gt;Matthew</description>
      <pubDate>Wed, 08 Jul 2015 19:27:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFTPConnection-The-encoding-can-not-be-changed-for-this-sftp/m-p/2287494#M61074</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-07-08T19:27:03Z</dc:date>
    </item>
    <item>
      <title>Re: tFTPConnection: The encoding can not be changed for this sftp server.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFTPConnection-The-encoding-can-not-be-changed-for-this-sftp/m-p/2287495#M61075</link>
      <description>If I turn the encoding to UTF-8 instead of the default, it will work in Talend 5.6.
&lt;BR /&gt;Checking the code for com.jcraft.jsch 
&lt;A href="http://www.docjar.org/html/api/com/jcraft/jsch/ChannelSftp.java.html" target="_blank" rel="nofollow noopener noreferrer"&gt;here:&lt;/A&gt;
&lt;BR /&gt;2392 &amp;nbsp; public void setFilenameEncoding(String encoding) throws SftpException{
&lt;BR /&gt;2393 &amp;nbsp; int sversion=getServerVersion();
&lt;BR /&gt;2394 &amp;nbsp; if(sversion &amp;gt; 3 &amp;amp;&amp;amp; 
&lt;BR /&gt;2395 &amp;nbsp; !encoding.equals(UTF8)){
&lt;BR /&gt;2396 &amp;nbsp; throw new SftpException(SSH_FX_FAILURE, 
&lt;BR /&gt;2397 &amp;nbsp; "The encoding can not be changed for this sftp server.");
&lt;BR /&gt;2398 &amp;nbsp; }
&lt;BR /&gt;2399 &amp;nbsp; if(encoding.equals(UTF8)){
&lt;BR /&gt;2400 &amp;nbsp; encoding=UTF8;
&lt;BR /&gt;2401 &amp;nbsp; }
&lt;BR /&gt;2402 &amp;nbsp; fEncoding=encoding;
&lt;BR /&gt;2403 &amp;nbsp; fEncoding_is_utf8=fEncoding.equals(UTF8);
&lt;BR /&gt;2404 &amp;nbsp; }
&lt;BR /&gt;2405 &amp;nbsp; 
&lt;BR /&gt;2406 &amp;nbsp; public String getExtension(String key){
&lt;BR /&gt;2407 &amp;nbsp; if(extensions==null)
&lt;BR /&gt;2408 &amp;nbsp; return null;
&lt;BR /&gt;2409 &amp;nbsp; return (String)extensions.get(key);
&lt;BR /&gt;2410 &amp;nbsp; }
&lt;BR /&gt;2411 &amp;nbsp; 
&lt;BR /&gt;I would assume that this was a change to the setFilenameEncoding method that is in Talend 5.6, but not 5.5, that requires UTF8 if the SFTP server version if &amp;gt; 3.</description>
      <pubDate>Wed, 08 Jul 2015 22:10:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFTPConnection-The-encoding-can-not-be-changed-for-this-sftp/m-p/2287495#M61075</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-07-08T22:10:19Z</dc:date>
    </item>
  </channel>
</rss>

