If I send an email with an object attached to camel messeage headers, the object and other headers are inserted into the mail body. I don't understand why, but I don't mind.
The problem is, if the body conains special characters like umlaut u, the body content ist garbled. most of the body content ist missing. I tried CamelCharsetName=UTF-8 and ISO-8859-1, but there is no difference. an Umlaut ue in another header or in the subject seems to be ok. this is a problem, since the special characters come from an exception.message, which I have to forward in a mail. thanks a lot, Tippse message body shown correctly without special character (Umlaut ue): header_umlaut: Umlaut ü in header OBJECT: mandant=test, id=12345 titel: v4all-Uploader: Ein Fehler ist aufgetreten! Umlaut ue message body with special character (Umlaut ü, see line OJBECT!): header_umlaut: Umlaut ü in header OBJECT: mandant=st, id345 titel: v4all-Uploader: Ein Fehler ist aufgetreten! Umlaut ü <camelContext id="camelContext" xmlns="http://camel.apache.org/schema/spring" trace="true"> <route id="FromDirectInfomail"> <from uri="direct:Infomail" /> <setProperty propertyName="CamelCharsetName"> <constant>ISO-8859-1</constant> </setProperty> <setHeader headerName="From"> <simple>nore...@somedomain.com</simple> </setHeader> <setHeader headerName="To"> <simple>{{email-adress}}</simple> </setHeader> <setHeader headerName="Subject"> <simple>${in.header.titel}</simple> </setHeader> <setHeader headerName="header_umlaut"> <simple>Umlaut ü in header</simple> </setHeader> <setBody> <simple>Umlaut ü</simple> </setBody> <to uri="smtp://somesmtpserver.srv.it2media.de" /> </route> </camelContext> the object class: public class TestObject { private String mandant = "test"; private String id = "12345"; @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("mandant="); sb.append(mandant); sb.append(", id="); sb.append(id); return sb.toString(); } } -- View this message in context: http://camel.465427.n5.nabble.com/Mail-Body-garbled-when-containing-umlaut-ue-tp5784365.html Sent from the Camel - Users mailing list archive at Nabble.com.