Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Webservice response encoding issue in CQ 5.5

Community_Admin
Employee
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
Community_Admin
Correct answer by
Employee
Employee

you may have to use EncodingInterceptor and DecodingInterceptor

View solution in original post

1 Reply
Community_Admin
Correct answer by
Employee
Employee

you may have to use EncodingInterceptor and DecodingInterceptor

View solution in original post