Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

Webservice response encoding issue in CQ 5.5

Avatar

Employee

Hi,

 

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?

Thanks

1 Accepted Solution

Avatar

Correct answer by
Employee

you may have to use EncodingInterceptor and DecodingInterceptor

View solution in original post

1 Reply

Avatar

Correct answer by
Employee

you may have to use EncodingInterceptor and DecodingInterceptor