ContainerRequestParameter.getString(String encoding) not working
----------------------------------------------------------------

                 Key: SLING-468
                 URL: https://issues.apache.org/jira/browse/SLING-468
             Project: Sling
          Issue Type: Bug
          Components: Engine
    Affects Versions: 2.0.0
         Environment: Windows XP, Java 1.5.0_04
            Reporter: Thomas Röthlisberger
            Priority: Minor


Using the method
ContainerRequestParameter.getString(String encoding) does not decode the String.

When executing a sling page with the url:
standardportal.html?q=%C3%A4%C3%B6%C3%BC

then using 
SlingHttpServletRequest.getParameter("q").getString("UTF-8") 
is not returning äöü but äöü

but when doing the decode manually
new 
String(SlingHttpServletRequest.getParameter("q").getString().getBytes(),"UTF-8")
is returning äöü.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to