Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.
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