Hi Thanks for posting back the solution to this. I wonder if commons net 2.2 have changed the default? We are using the good old 2.0 in camel-ftp.
Fell free to create a JIRA ticket then we can look into if we can add the logic for FEAT or simply just set that encoding to UTF-8 by default. On Tue, Mar 15, 2011 at 8:39 AM, Bengt Rodehav <[email protected]> wrote: > After a bit of investigating I managed to resolve this problem. Apparently, > Serv-U uses UTF-8 for "control encoding". I believe this is the most common > encoding and, to my understanding, if the ftp server supports UTF-8 then it > should be used unless the ftp client requests otherwise. > > If I add the following URI option to my camel route then it works: > > * &ftpClient.controlEncoding=UTF-8 * > > > I do, however, wonder if this shouldn't be the default in camel-ftp. I > certainly will make it our default. Acutally I think the default in Commons > Net Ftp is "ISO-8859-1" and I guess they should really change the default. > Or even better do like Filezilla: Send the FEAT command and if the server > responds with UTF-8 then it will be used. > > /Bengt > > > > /Bengt > > 2011/3/14 Bengt Rodehav <[email protected]> > >> I'm using camel-ftp (Camel 2.6) on Windows XP. >> >> Being Swedish the file names sometimes contain national characters >> (åäöÅÄÖ). This does not seem to work well. >> >> If I retrieve (get) a file via camel-ftp with the name "testäÄ.txt", the >> name of the received file becomes "testäÄ.txt". If I try to retrieve a >> file with the name "åäöÅÄÖ.txt" then camel-ftp doesn't seem to find the file >> at all. >> >> I've tested with Serv-U as the ftp server. However, I don't think the >> problem is with Serv-U since retrieving the above files using Filezilla ftp >> client works fine. >> >> Do I have to configure camel-ftp in order to use the correct character set? >> Any ideas? >> >> /Bengt >> > -- Claus Ibsen ----------------- FuseSource Email: [email protected] Web: http://fusesource.com Twitter: davsclaus Blog: http://davsclaus.blogspot.com/ Author of Camel in Action: http://www.manning.com/ibsen/
