parameters: (string, enc)
docstring: turn unicode encoding into a functional routine
docstring_summary: turn unicode encoding into a functional routine
docstring_tokens: turn unicode encoding into a functional routine
function: def try_encode(string, enc):
      "turn unicode encoding into a functional routine"
      try:
          return string.encode(enc)
      except UnicodeEncodeError:
          return None
function_tokens: def try_encode ( string , enc ) : try : return string . encode ( enc ) except UnicodeEncodeError : return None