I am not sure of exact issue you are encountering. Please make sure content type is set to UTF-8 in your component. Once such example is , also Fully Featured Internet Website also have utf-8.
Do you have a reference for any further information on how to set the default response encoding in the CQ / Day Servlet Engine? I've been searching for a way to get CQ5 to return UTF-8 encoded responses (for all responses, not just POST), but not having any luck so far.
In the jsp file I have:
<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
And in the head of the html is:
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
But still get ISO-8859-1 in the response header (for a GET request):
It seems that CQ5 is still using the default encoding somehow. Is it possible to change the default encoding to UTF-8, or do I need to implement a servlet filter to force the response encoding? I'm using CQ5.5 SP2, if that makes any difference.
Take a look at the OSGi Console at "Configuration -> Apache Sling Main Servlet -> Default Parameter Encoding"
This setting is for the whole CQ5.5 Instance
If you want to set e.g. UTF-8 for a single component, then you can POST the "_charset_" parameter set to UTF-8
For the response, you can use