Webservice response encoding issue in CQ 5.5 | Community
Skip to main content
Community_Admin
Adobe Employee
Adobe Employee
October 16, 2015
Solved

Webservice response encoding issue in CQ 5.5

  • October 16, 2015
  • 1 reply
  • 573 views

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Community_Admin

you may have to use EncodingInterceptor and DecodingInterceptor

1 reply

Community_Admin
Adobe Employee
Community_AdminAdobe EmployeeAuthorAccepted solution
Adobe Employee
October 16, 2015

you may have to use EncodingInterceptor and DecodingInterceptor