docs: public static String getEncoding(CmsObject cms, CmsResource file) {
  
          CmsProperty encodingProperty = CmsProperty.getNullProperty();
          try {
              encodingProperty = cms.readPropertyObject(file, CmsPropertyDefinition.PROPERTY_CONTENT_ENCODING, true);
          } catch (CmsException e) {
              LOG.debug(e.getLocalizedMessage(), e);
          }
          return CmsEncoder.lookupEncoding(encodingProperty.getValue(""), OpenCms.getSystemInfo().getDefaultEncoding());
      }