Skip to Content
Former Member
Nov 03, 2006 at 05:48 PM

Mail adapter module UTF-8 to ISO-8859-1 conversion



I've a problem with a mail attachment which is generated by an adapter module for the mail adapter. The content type is set to "Application/EDIFACT; charset=iso-8859-1" when I add the attachment, but the mail adapter ignores the charset-setting.

Therefore german "umlauts" like ü are displayed in a wrong way: ü

When I set the content, I transform it in ISO-8859-1 : attachment.setContent(edifactString.getBytes("ISO-8859-1"),"ISO-8859-1");

When I test the result of edifactString.getBytes("ISO-8859-1"), I get the String in the right character encoding, but the mail adapter seems to "fix" the encoding ๐Ÿ˜”

I also tried to use the messageTransformBean, but it doesn't worked.

Anyone knows how to solve this issue?

Best regards,