title: Remove Emoji's from multilingual Unicode text
body: <p>I'm trying to remove <em>just</em> Emoji from Unicode text. I tried the various methods <a href="https://stackoverflow.com/questions/33404752/removing-emojis-from-a-string-in-python">described in another Stack Overflow post</a> but none of those are removing all emojis / smileys completely. For example:</p>
  
  <p>Solution 1:</p>
  
  <pre><code>def remove_emoji(self, string):
      emoji_pattern = re.compile("["
                             u"\U0001F600-\U0001F64F"  # emoticons
                             u"\U0001F300-\U0001F5FF"  # symbols &amp; pictographs
                             u"\U0001F680-\U0001F6FF"  # transport &amp; map symbols
                             u"\U0001F1E0-\U0001F1FF"  # flags (iOS)
                             u"\U00002702-\U000027B0"
                             u"\U000024C2-\U0001F251"
                             "]+", flags=re.UNICODE)
      return emoji_pattern.sub(r'', string)
  </code></pre>
  
  <p>Leaves in  in the following example:</p>
  
  <pre><code>Input: తెలంగాణ రియల్ ఎస్టేట్ 
  Output: తెలంగాణ రియల్ ఎస్టేట్ 
  </code></pre>
  
  <p>Another attempt, solution 2:</p>
  
  <pre><code>def deEmojify(self, inputString):
      returnString = ""
      for character in inputString:
          try:
              character.encode("ascii")
              returnString += character
          except UnicodeEncodeError:
              returnString += ''
      return returnString
  </code></pre>
  
  <p>Results in removing any non-English character:</p>
  
  <pre><code> Input: Testరియల్ ఎస్టేట్ A.P&amp;T.S. 
   Output: Test  A.P&amp;T.S. 
  </code></pre>
  
  <p>It removes not only all of the emoji but it also removed the non-English characters because of the <code>character.encode("ascii")</code>; my non-English inputs can not be encoded into ASCII.</p>
  
  <p>Is there any way to properly remove Emoji from international Unicode text?</p>