def get_site_encoding():
 global SITE_ENCODING
 if (SITE_ENCODING is None):
  encoding = desktop.conf.DEFAULT_SITE_ENCODING.get()
  if (not validate_encoding(encoding)):
   default = desktop.conf.DEFAULT_SITE_ENCODING.config.default_value
   msg = ('Invalid HUE configuration value for %s: "%s". Using default "%s"' % (desktop.conf.DEFAULT_SITE_ENCODING.config.key, encoding, default))
   logging.error(msg)
   encoding = default
  SITE_ENCODING = encoding
 return SITE_ENCODING

def get_site_encoding ( ) : global SITE_ENCODING if ( SITE_ENCODING is None ) : encoding = desktop . conf . DEFAULT_SITE_ENCODING . get ( ) if ( not validate_encoding ( encoding ) ) : default = desktop . conf . DEFAULT_SITE_ENCODING . config . default_value msg = ( 'Invalid HUE configuration value for %s: "%s". Using default "%s"' % ( desktop . conf . DEFAULT_SITE_ENCODING . config . key , encoding , default ) ) logging . error ( msg ) encoding = default SITE_ENCODING = encoding return SITE_ENCODING
get the default site encoding .