public static Request setCharacterEncoding(final String encoding) {
    """
	Creates an {@link HttpOperation} that calls {@link HttpServletRequest#setCharacterEncoding(String)} on the current
	request.
	
	@param encoding The encoding to apply
    """
      return new Request() {
         @Override
         public void performHttp(HttpServletRewrite event, EvaluationContext context)
         {
            try {
               event.getRequest().setCharacterEncoding(encoding);
            }
            catch (UnsupportedEncodingException e) {
               throw new IllegalArgumentException("Failed to set encoding " + encoding, e);
            }
         }

         @Override
         public String toString()
         {
            return "Request.setCharacterEncoding(\"" + encoding + "\")";
         }
      };
   }
public static Request setCharacterEncoding(final String encoding)
   {
      return new Request() {
         @Override
         public void performHttp(HttpServletRewrite event, EvaluationContext context)
         {
            try {
               event.getRequest().setCharacterEncoding(encoding);
            }
            catch (UnsupportedEncodingException e) {
               throw new IllegalArgumentException("Failed to set encoding " + encoding, e);
            }
         }

         @Override
         public String toString()
         {
            return "Request.setCharacterEncoding(\"" + encoding + "\")";
         }
      };
   }
public static Request setCharacterEncoding ( final String encoding ) { return new Request ( ) { @ Override public void performHttp ( HttpServletRewrite event , EvaluationContext context ) { try { event . getRequest ( ) . setCharacterEncoding ( encoding ) ; } catch ( UnsupportedEncodingException e ) { throw new IllegalArgumentException ( "Failed to set encoding " + encoding , e ) ; } } @ Override public String toString ( ) { return "Request.setCharacterEncoding(\"" + encoding + "\")" ; } } ; }
Creates an {@link HttpOperation} that calls {@link HttpServletRequest#setCharacterEncoding(String)} on the current
request.

@param encoding The encoding to apply
Creates an { @link HttpOperation } that calls { @link HttpServletRequest#setCharacterEncoding ( String ) } on the current request .