parameters: (name)
return_statement: return decodedName
docstring: Decode encoded name.
  
      Parameters
      ----------
      name : str
          The string to decode.
  
      Returns
      -------
      tuple
      (string)
          A tuple containing the decoded `name` in 'latin1',
          otherwise in 'utf8'.
          If it fails it returns the original `name`.
docstring_summary: Decode encoded name.
docstring_tokens: Decode encoded name .
function: def decodeName(name):
      """Decode encoded name.
  
      Parameters
      ----------
      name : str
          The string to decode.
  
      Returns
      -------
      tuple
      (string)
          A tuple containing the decoded `name` in 'latin1',
          otherwise in 'utf8'.
          If it fails it returns the original `name`.
      """
      try:
          decodedName = name
      except UnicodeDecodeError:
          try:
              decodedName = (name.decode("latin1"))
          except UnicodeDecodeError:
              try:
                  decodedName = (name.decode("utf8"))
              except UnicodeDecodeError:
                  _msg = ("AirfoilDAT error: "
                          "couldn't determine character encoding.")
                  FCC.PrintError(translate("ImportAirfoilDAT", _msg) + "\n")
                  decodedName = name
      return decodedName
function_tokens: def decodeName ( name ) : try : decodedName = name except UnicodeDecodeError : try : decodedName = ( name . decode ( "latin1" ) ) except UnicodeDecodeError : try : decodedName = ( name . decode ( "utf8" ) ) except UnicodeDecodeError : _msg = ( "AirfoilDAT error: " "couldn't determine character encoding." ) FCC . PrintError ( translate ( "ImportAirfoilDAT" , _msg ) + "\n" ) decodedName = name return decodedName