By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
464,828 Members | 1,068 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 464,828 IT Pros & Developers. It's quick & easy.

Cannot print greek letters in Python 2.6

P: 1
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:
Expand|Select|Wrap|Line Numbers
  1. import win32clipboard
  2. win32clipboard.OpenClipboard()
  3. data = win32clipboard.GetClipboardData()
  4. win32clipboard.CloseClipboard()
  5. data = data.decode('latin1')
  6. send = 'ccc|=:='+data
  7. print data
  8. print send
Nov 28 '13 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.