title: Outputting emoji in python
body: <p>I'm trying to output emoji in <code>Telegram</code> automatically using python library <code>pyautogui</code> but however i found it impossible to just <code>typewrite</code> it. I searched for libraries to help me solve my problem and i found <code>pyemojify</code> and <code>emoji</code> but in both cases i faced </p>
  
  <pre><code>UnicodeEncodeError: 'charmap' codec can't encode characters: character maps to &lt;undefined&gt;
  </code></pre>
  
  <p>and the code is:</p>
  
  <pre><code>from pyemojify import emojify
  print(emojify("Life is short :smile: , use :sparkles: Python :sparkles:"))
  </code></pre>
  
  <p>and this:</p>
  
  <pre><code>import emoji
  print(emoji.emojize('Python is :thumbs_up_sign:'))
  </code></pre>
  
  <p>i searched here a lot but none of the answers finally worked for me.
  Now i have two questions: is there any way to output an emoji in <code>Telegram</code> using python <code>pyautogui</code> or even using java <code>Robot</code> class? and the second question is how i should fix <code>UnicodeEncodeError</code> in my code? Thanks in advance :)</p>