code: public void setFileEncoding(String fileEncoding) {
  
          checkFrozen();
          try {
              m_fileEncoding = Charset.forName(fileEncoding);
          } catch (IllegalCharsetNameException icne) {
              throw new CmsIllegalArgumentException(
                  Messages.get().container(Messages.ERR_CHARSET_ILLEGAL_NAME_1, fileEncoding));
          } catch (UnsupportedCharsetException ucse) {
              throw new CmsIllegalArgumentException(
                  Messages.get().container(Messages.ERR_CHARSET_UNSUPPORTED_1, fileEncoding));
  
          }
  
      }
docs: Set the character encoding of the underlying file.<p>
  
  The given String has to match a valid char set name (canonical or alias)
  of one of the system's supported <code>{@link Charset}</code> instances
  (see <code>{@link Charset#forName(java.lang.String)}</code>).<p>
  
  This setting will be used for reading the file. This enables to correctly
  display files with text in various encodings in UIs.<p>
  
  @param fileEncoding the character encoding of the underlying file to set