code: def unicode2auto(unicode_text, encode_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(encode_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 unicode2encode(unicode_text, encode)
              # end of if ch in unique_chars:
          # end of ifor ch in encode_keys:
      else:
          print(msg)
          return ''
docs: This function will convert unicode (first argument) text into other
      encodes by auto find the encode (from available encodes) by using sample
      encode text in second argument of this function.
  
      unicode_text : Pass unicode string which has to convert into other encode.
      encode_text : Pass sample encode string to identify suitable encode for it.
  
      This function tries to identify encode in available encodings.
      If it finds, then it will convert unicode_text into encode string.
  
      Author : Arulalan.T
  
      08.08.2014