473,320 Members | 1,535 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

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:
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
0 1104

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

Similar topics

27
by: alexdoulou | last post by:
Hello, I am trying to type greek fonts into common html forms on the Internet explorer but erroneous text is being typed instead of clear greek. Greek language pack is installed correctly....
2
by: Access Guy | last post by:
I have a procedure to automate .pdf reports. I set the default printer to the pdfwriter driver before running. When the procedure runs, some of the reports get an error: "Cannot print, the file...
1
by: Bugs | last post by:
Hi everyone. I cannot print or print preview a form in access 2003. Locks up the PC. This happens for some of my access 2003 apps, others seem to work OK. Running on XP with an epson stylus...
3
by: Michael Evanchik | last post by:
I was coding along in asp.net (which i must say is great) But using the tab control that microsoft made, when i click on other tabs and go to print(native internet explorer print) it does not print...
2
by: Dave | last post by:
Can someone tell me how to add Greek letters to a string? In this case I need to add the Greek letter mu to a string for display on the screen and don't know how to do it. Thanks in advance for...
3
by: printline | last post by:
Hello Guys I cannot print from a locally installed printer that is mapped to a windows 2003 sever. I have installed the printer locally and can print locally. I connect to the windows 2003...
6
by: starman | last post by:
Hi all, I'm having trouble trying to enter/retrieve Greek characters. I have an astronomical dbase in MySQL. As you may know, lots of sky objects have Greek letter names (alpha Centauri, etc) but I...
2
by: Benx | last post by:
Hello, I have to display a mixed letters greek and latin like: "alpha" ursa major, "beta" centauri, "delta" velorum, "epsilon"....., need help to do it. Thank's
4
by: burrashiva | last post by:
Hi All, I have an Editor through which I want to send Greek Symbols for which I am using Α etc representation. I have an HTML template page where this Editor is called. Through MOOTOOLs...
1
by: Ice Rider | last post by:
I'm trying to print two variables together in one print statement in Python and getting TypeError: __add_nor_radd__ defined for these operands. Any one has idea whats going on with this print...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.