Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #60741
| References | <ac623a00-9622-42cb-a5a0-6142417e673a@googlegroups.com> |
|---|---|
| Date | 2013-11-29 09:48 +1100 |
| Subject | Re: Cannot print greek letters in Python 2.6 |
| From | Chris Angelico <rosuav@gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.3385.1385678919.18130.python-list@python.org> (permalink) |
On Fri, Nov 29, 2013 at 9:22 AM, <mefistofelis@gmail.com> wrote: > 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. You need to know what encoding is actually being used. Attempting to decode using arbitrary encodings is doomed to failure. Possibly Windows is using some kind of global default encoding, or possibly you can query the other program for its encoding, but you're unlikely to succeed by pointing the decode gun in random directions and firing. Incidentally, you may find things easier if you switch to Python 3.3 - quite a bit of Unicode handling is improved in Py3. As a separate point, can you please use something better than Google Groups for posting? There are many far better clients than GG, or you can use the mailing list instead: https://mail.python.org/mailman/listinfo/python-list Google Groups is buggy and should not be used. ChrisA
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Cannot print greek letters in Python 2.6 mefistofelis@gmail.com - 2013-11-28 14:22 -0800 Re: Cannot print greek letters in Python 2.6 Chris Angelico <rosuav@gmail.com> - 2013-11-29 09:48 +1100 Re: Cannot print greek letters in Python 2.6 Terry Reedy <tjreedy@udel.edu> - 2013-11-28 20:46 -0500 Re: Cannot print greek letters in Python 2.6 Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-11-29 03:48 +0000
csiph-web