Cannot print greek letters in Python 2.6

mefistofelis at gmail.com mefistofelis at gmail.com
Thu Nov 28 23:22:01 CET 2013


I have the following script however when the clipboard contents are greek letters it fails to print them right.
I have used all posible encoding for greek letters including utf8 but to no avail so i just stay with latin1.

Can you suggest a solution?

Here is the script:

import win32clipboard
win32clipboard.OpenClipboard()
data = win32clipboard.GetClipboardData()
win32clipboard.CloseClipboard()
data = data.decode('latin1')
send = 'ccc|=:='+data
print data
print send 

The following script is running from eventghost programm.



More information about the Python-list mailing list