Hi Claus, I'm using the latest released Camel version (2.10.0), but also tried with the trunk version too.
I don't think your suggestion would work for me, as I need to create a recipient list, with each recipient having different query parameters, so I need to encode those query params into each recipient URI (as just single URI strings) - and so setting the HTTP_QUERY on the entire exchange doesn't seem appropriate. Anyways, I got around the problem by double-encoded (as suggested by Donald). I did play around with your suggestion a little (which works), but it's still not the most intuitive (note I have to encode just the query part, and not the '?q=' part, of the HTTP_QUERY string): Exchange exchange = new DefaultExchange(context); exchange.getIn().setHeader(Exchange.HTTP_QUERY, "q=" + URLEncoder.encode("D & Bolly", "UTF-8")); Exchange response = CamelWrapper.getProducerTemplate().send("https4://www.google.com", exchange); It's certainly an interesting use-case though, thanks for all the feedback guys...! -- View this message in context: http://camel.465427.n5.nabble.com/Ampersand-in-URI-query-parameter-not-working-CAMEL-4857-doesn-t-fix-tp5720914p5721035.html Sent from the Camel - Users mailing list archive at Nabble.com.