1
votes

I'm trying to set the character encoding in use by AEM/Sling to UTF-8. According to the Sling documentation, this can be overridden by a property on the Sling Main Servlet:

As of Sling Engine 2.2.4 the _charset_ request parameter is optional. As of this version the Sling Main Servlet supports a configuration setting which allows to change the default character encoding used if the _charset_ request parameter is missing.

To enable this functionality set the sling.default.parameter.encoding parameter of the Sling Main Servlet (PID org.apache.sling.engine.impl.SlingMainServlet) configuration to the desired encoding, which of course must be supported by the actual Java Platform.

But while this was possible in previous versions, this configuration seems to have been removed from the latest versions of AEM (6.0+) and Sling (8), i.e. in the menu at

the sling.default.parameter.encoding isn't present anymore. Is there an alternative way to configure this value now, to use UTF-8 rather than the ISO default?

1

1 Answers

2
votes

It is moved to Apache Sling Request Parameter Handling on AEM 6.0