We have implemented a RESTful webservice client in CQ5 using Apache Jersey. We have run into an encoding issue in the webservice response for special characters.
Special characters in Swedish & German languages (umlauts etc) do not show up correctly. The returned xml is being utf-8 decoded.
In Eclipse console, running as a standalone java application, I can see the response coming fine. The problem comes when the same client is bundled and deployed to CQ5. The response now contains '?' for the special characters.
Does anybody have any idea how this issue could be resolved?
Is this a CQ5 server encoding issue?
you may have to use EncodingInterceptor and DecodingInterceptor
Don't know if it has something to do with your problem, but you could check this setting in OSGi Console:
Configuration -> Apache Sling Main Servlet -> Default Parameter Encoding
MarcGriebenow ... I just want to tell you how much you saved my life with this configuration tweak.