Cannot print greek letters in Python 2.6

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mefistofelis
    New Member
    • Nov 2013
    • 1

    Cannot print greek letters in Python 2.6

    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:
    Code:
    import win32clipboard
    win32clipboard.OpenClipboard()
    data = win32clipboard.GetClipboardData()
    win32clipboard.CloseClipboard()
    data = data.decode('latin1')
    send = 'ccc|=:='+data
    print data
    print send
    Last edited by bvdet; Dec 6 '13, 03:20 PM. Reason: Add code tags
Working...