how to get text from clipboard in python and paste in utf-8?
<p>I have some utf-8 text in the clipboard and a utf-8 .txt file with nothing in it.</p>

<p>If I open the file in notepad++, and paste using ctrl+v, I get it in utf-8 format, without those ?'s in it.</p>

<p>But if I use a python code to get text from clipboard and open the file in append mode and write it there, then look at the file in notepad++, i see the ?'s in it.</p>

<p>Is there some special python code that can get text from the clipboard and write it to an empty utf-8 file, such that if I were to look at the file after in notepad++, i wouldn't see those ?'s.</p>

<p>Anyone know?</p>
