code: public void setEncoding(String encoding) {
  
          checkFrozen();
          m_encoding = CmsEncoder.lookupEncoding(encoding, OpenCms.getSystemInfo().getDefaultEncoding());
      }
docs: Sets the encoding.<p>
  
  @param encoding the encoding to set
  
  @see CmsRequestContext#setEncoding(String)