code: protected String determineEncoding(ResourceRequest request) {
          String encoding = request.getCharacterEncoding();
          if (encoding == null) {
              encoding = getDefaultEncoding();
          }
          return encoding;
      }
docs: <p>determineEncoding.</p>
  
  @param request a {@link javax.portlet.ResourceRequest} object.
  @return a {@link java.lang.String} object.