4 Replies Latest reply on Jun 20, 2013 1:01 PM by anil.saldhana

    Encoding for Post-Requests

    firstlion

      Hello @all,

       

      I have a new problem. Our webapplication has several input fields, which values are transferred via Post-Requests to the server. When i activate Picketlink, german Umlaute (ä, ö, ü) don't work anymore. Without Picketlink, there is no problem. The entire webapplication is encoded with UTF-8. Is there any configuration for the encoding, that Picketlink uses?

       

      Edit:

      "Dirty Solution": Use your own subclass of "SPPostFormAuthenticator" and override one method:

       

      @Override
      public boolean authenticate(Request request, HttpServletResponse response, LoginConfig config) throws IOException {
              request.setCharacterEncoding("UTF-8");
              response.setCharacterEncoding("UTF-8"); 
              return super.authenticate(request, response, config);
      }
      

       

      Without overriding this method, the request has no encoding and the response has a "ISO-xxxxxx"-encoding.

       

      Thanks,

      Martin