camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Roland Villemoes ...@alpha-solutions.dk>
Subject Using Camel-ftp to write file with windows-1252 encoding
Date Fri, 27 Aug 2010 10:00:16 GMT

Hi 

I am using Camel-2.2.0 and camel-ftp-2.2.0. 

The issue is that i am using camel-ftp to create file on a windows FTP
server and the file must be in windows-1252 :-(

My code is running on a Linux server (running
apache-servicemix-4.2.0-fuse-01-00).

I have tried to set parameter on the endpoint to binary=true and to do
someting like:

byte[] origStringInBytes=sb.toString().getBytes("UTF-8");
String contentInWindows1252 = new String(origStringInBytes, "windows-1252");
exchange.getOut().setBody(sb.toString());

Anyone having same issue? 
-- 
View this message in context: http://camel.465427.n5.nabble.com/Using-Camel-ftp-to-write-file-with-windows-1252-encoding-tp2739750p2739750.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message