Hello, 

I use SMTP component and I have problem with cyrillic filename for
attachment.

The issue is like https://issues.apache.org/jira/browse/CAMEL-4007, but I
have cyrillic  characters, not german Umlaut characters at the attachment
file name. According to it, I changed filename to
"\u041f\u0440\u0438\u0432\u0435\u0442", but still name is wrong, something
like this - "@825B". I used the test attached to JIRA thread and with german
umlaut character everything is fine, by cyrillic not working. 

I thought I need to change Content-Disposition header, but I didn't get how
to reach it from DataHandler.

...
Message in = exchange.getIn();
data = Base64.decodeBase64(data);
in.addAttachment("\u041f\u0440\u0438\u0432\u0435\u0442", new
DataHandler(data, "application/vnd.ms-excel"));
...



--
View this message in context: 
http://camel.465427.n5.nabble.com/Attachment-filename-encoding-issue-tp5772410.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to