Well, i also thought about this but i was not able to find a switch on the jetty endpoint to configure the expected encoding.
Von: Christian Mueller [via Camel] [mailto:[email protected]] Gesendet: Montag, 1. August 2011 13:57 An: Heinemann, Martin Betreff: Re: Get raw string from header without decosing? I will have a look on it later. But may be the header is set with a different encoding then you/Camel uses (UTF-8 vs. ISO-8859-1)? Best, Christian Sent from a mobile device Am 01.08.2011 11:43 schrieb "heinrichheine" <[hidden email]</user/SendEmail.jtp?type=node&node=4654840&i=0>>: > Hi there, > > i have a simple jetty:http endpoint in my route that receives a http-GET > call. > This call contains a parameter "message". > This parameter can include some german umlauts which are encoded in > URLEncoding. > Example: > url request looks like this: > http://1.2.3.4/?message=Keine+g%FCltige+GPS-Daten%21&otherparam=helloworld > > I've written a Java processor class which reads the message param from the > exchange.in > > String message = exchange.getIn().getHeader("message", String.class); > > Something strange is happening here because the result is "Keine g?ltige > GPS-Daten!". I assume that somewhere in the camel core routines a decoding > takes place. But it's not doing it right. The "?" should be an "ü". > How do i prevent camel to do the decoding of the request parameter? Or how > do i tell camel to do the decoding the correct way? > > Thanks in advance > > martin > > -- > View this message in context: http://camel.465427.n5.nabble.com/Get-raw-string-from-header-without-decosing-tp4654493p4654493.html > Sent from the Camel - Users mailing list archive at Nabble.com. ________________________________ If you reply to this email, your message will be added to the discussion below: http://camel.465427.n5.nabble.com/Get-raw-string-from-header-without-decosing-tp4654493p4654840.html To unsubscribe from Get raw string from header without decosing?, click here<http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4654493&code=bWFydGluLmhlaW5lbWFubkB2aXRhcGhvbmUuZGV8NDY1NDQ5M3wtMTk5MzY2MzcxMw==>. ________________________________ Hinweis: Diese Email enthält evtl. vertrauliche und rechtlich geschützte Informationen. Sollten Sie nicht der richtige Adressat sein oder diese Email irrtümlich erhalten haben, informieren Sie bitte sofort den Absender, und löschen Sie anschließend diese E-Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe des Inhalts dieser Email sind nicht gestattet. Attention: This e-mail may contain confidential and/or privileged information. If you are not the intended recipient or if you have received this e-mail in error, please notify the sender immediately and delete this e-mail. Any unauthorized copying, disclosure or distribution of the contents of this e-mail is strictly prohibited. -- View this message in context: http://camel.465427.n5.nabble.com/Get-raw-string-from-header-without-decosing-tp4654493p4654846.html Sent from the Camel - Users mailing list archive at Nabble.com.
