cancel
Showing results for 
Search instead for 
Did you mean: 

Setting the charset from an adapter module

Former Member
0 Kudos

Hi folks,

I'm trying to set the charset encoding of a payload using an adapter module (I know there is a TextCodepageConverterBean, but I want to set the charset for a message that hasn't one yet). The problem is probably more clear using an example.

I output a UTF-8 flat string from my message mapping to the adapter framework (mail adapter in my case). Afterwards I want to convert this UTF-8 string to an ISO-8859 encoding with the TextCodepageConverterBean. But if I set the charset using the setContentType() function of my TextPayload object the information gets cut away. I'm using the format

setContentType("text/plain;charset=utf-8;name=Test.txt")

. But everything after the first semicolon is dropped. Setting the charset using the MessageTransformBean works, but I want to avoid this by all means, as I need to set the mime type from the adapter module.

This is running on NW2004 with SP 16 and the latest patch.

Any idea, why the MessageTransformBean works and not the setContentType call?

Accepted Solutions (1)

Accepted Solutions (1)

stefan_grube
Active Contributor
0 Kudos

This bug will be fixed with SP20.

Regards

Stefan

Answers (0)