Thanks Christian for this answer.
I use Camel 2.5.0 and I tought I’m using the jetty default configuration.
My endpoint definition looks like this:

endpoint.http=jetty\:http\://0.0.0.0:\20001/

I can’t find any option to add tot he endpoint string to configure the encoding 
of incoming requests. Do you?

Greetings

 Martin
--
Ivan Ivanovich & The Kreml Krauts
black-tea-flavoured-schnitzel-beat
http://www.kreml-krauts.de


Von: Christian Mueller [via Camel] 
[mailto:[email protected]]
Gesendet: Dienstag, 2. August 2011 00:09
An: Heinemann, Martin
Betreff: Re: Get raw string from header without decosing?

Martin, you use the ISO-8859-1 URL encoding, the String "Keine gültige
GPS-Daten!" is converted to "Keine+g%FCltige+GPS-Daten%21".

If you use UTF-8 URL encoding (which is what Jetty use by default), you will
get "Keine%20g%C3%BCltige%20GPS-Daten!". And this works well in Camel (I
added a unit test for it [1]). The received header is "Keine gültige
GPS-Daten!" Is this an option/workaround for you?

I found the following Jetty JIRA issue, where this problem was discussed
[2].

I try to get the test with ISO-8859-1 URL encoding working (at present, it
has the @Ignore annotation), but until now without success. I will give it a
try again tomorrow. It should be possible...

[1] http://svn.apache.org/viewvc?view=revision&revision=1152948
[2] http://jira.codehaus.org/browse/JETTY-113

Best,
Christian

________________________________
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-tp4654493p4656866.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-tp4654493p4657755.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to