code: def get_encodings():
      '''
      return a list of string encodings to try
      '''
      encodings = [__salt_system_encoding__]
  
      try:
          sys_enc = sys.getdefaultencoding()
      except ValueError:  # system encoding is nonstandard or malformed
          sys_enc = None
      if sys_enc and sys_enc not in encodings:
          encodings.append(sys_enc)
  
      for enc in ['utf-8', 'latin-1']:
          if enc not in encodings:
              encodings.append(enc)
  
      return encodingf get_encodings():
      '''
      return a list of string encodings to try
      '''
      encodings = [__salt_system_encoding__]
  
      try:
          sys_enc = sys.getdefaultencoding()
      except ValueError:  # system encoding is nonstandard or malformed
          sys_enc = None
      if sys_enc and sys_enc not in encodings:
          encodings.append(sys_enc)
  
      for enc in ['utf-8', 'latin-1']:
          if enc not in encodings:
              encodings.append(enc)
  
      return encodings
docs: return a list of string encodings to try