code: def auto2unicode(text):
      
  
      _all_unique_encodes_, _all_common_encodes_ = _get_unique_common_encodes()
      # get unique word which falls under any one of available encodes from
      # user passed text lines
      unique_chars = _get_unique_ch(text, _all_common_encodes_)
      # count common encode chars
      clen = len(_all_common_encodes_)
      msg = "Sorry, couldn't find encode :-(\n"
      msg += 'Need more words to find unique encode out side of %d ' % clen
      msg += 'common compound characters'
      if not unique_chars:
          print(msg)
          return ''
      # end of if not unique_chars:
  
      for encode_name, encode_keys in _all_unique_encodes_:
          if not len(encode_keys): continue
          for ch in encode_keys:
              # check either encode char is presnent in word
              if ch in unique_chars:
                  # found encode
                  print(("Found encode : ", encode_name))
                  encode = _all_encodes_[encode_name]
                  return encode2unicode(text, encode)
              # end of if ch in unique_chars:
          # end of ifor ch in encode_keys:
      else:
          print(msg)
          return ''
docs: This function tries to identify encode in available encodings.
      If it finds, then it will convert text into unicode string.
  
      Author : Arulalan.T
  
      04.08.2014