camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tippse <>
Subject Re: Mail Body garbled when containing umlaut ue
Date Fri, 24 Jun 2016 11:30:49 GMT
reposted, because was not send to mailinglist before. 

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="" trace="true">
        <route id="FromDirectInfomail">
            <from uri="direct:Infomail" />
            <setProperty propertyName="CamelCharsetName">
            <setHeader headerName="From">
            <setHeader headerName="To">
            <setHeader headerName="Subject">
            <setHeader headerName="header_umlaut">
                <simple>Umlaut ü in header</simple>
                <simple>Umlaut ü</simple>
            <to uri="smtp://" />

the object class: 
public class TestObject {

    private String mandant = "test";
    private String id = "12345";

    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(", id=");
        return sb.toString();


View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message