Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #60741
| Path | csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!newsreader4.netcologne.de!news.netcologne.de!feeder1.cambriumusenet.nl!feed.tweaknews.nl!194.109.133.87.MISMATCH!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <rosuav@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.004 |
| X-Spam-Evidence | '*H*': 0.99; '*S*': 0.00; 'encoding': 0.05; 'subject:Python': 0.06; 'directions': 0.09; 'used.': 0.09; 'cc:addr:python-list': 0.11; 'python': 0.11; 'random': 0.14; 'windows': 0.15; 'avail': 0.16; 'buggy': 0.16; 'encodings': 0.16; 'failure.': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'instead:': 0.16; 'unlikely': 0.16; 'utf8': 0.16; 'wrote:': 0.18; 'bit': 0.19; 'separate': 0.22; 'cc:addr:python.org': 0.22; 'print': 0.22; 'unicode': 0.24; 'cc:2**0': 0.24; 'cc:no real name:2**0': 0.24; 'script': 0.25; 'handling': 0.26; 'possibly': 0.26; 'query': 0.26; 'right.': 0.26; 'switch': 0.26; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'message-id:@mail.gmail.com': 0.30; 'url:mailman': 0.30; 'easier': 0.31; 'quite': 0.32; 'url:python': 0.33; 'fri,': 0.33; 'something': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'google': 0.35; 'there': 0.35; 'url:listinfo': 0.36; 'url:org': 0.36; 'should': 0.36; 'list': 0.37; 'being': 0.38; 'nov': 0.38; 'mailing': 0.39; 'url:mail': 0.40; 'improved': 0.60; 'letters': 0.60; "you're": 0.61; 'kind': 0.63; 'default': 0.69; 'greek': 0.84; 'posible': 0.84; 'to:none': 0.92; '2013': 0.98 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=JjwEhEdRCMP1+v7VkbYXwQb6tmEMJRiceD/r2Vzsnu8=; b=JjHlebf3VgUb+kIEin5qifRgQIf6bqaKbTsWVQsSXFelEzfYwNmn70J7G9ksZQiqMQ 3cMmXspfmlHYrn6bp4nsRzFDPN1FMPCaISSqQpG9SFCfu2OM8fUQGj0SOAABaI4JgKOf BLRCGOMavkPK9Fj4s97g6DKAiKMrI8RJnhDvCP/25iNq5uU4iz7mIA5upAe3A6vO8/A8 xEZueTO4kBkGB/54v8Gyy9bhzRyUGOMHrG1c4Ug6uOMGCd5DtJf23Yhg3KoVV3/p2eym 39bxsw52jL+nToEAOKuZ8/ldtBv7/R0wX7fITpxRrboQXsLonEJwhKbpS3IzmR5ihjRF NNiQ== |
| MIME-Version | 1.0 |
| X-Received | by 10.66.141.144 with SMTP id ro16mr10833500pab.131.1385678916549; Thu, 28 Nov 2013 14:48:36 -0800 (PST) |
| In-Reply-To | <ac623a00-9622-42cb-a5a0-6142417e673a@googlegroups.com> |
| References | <ac623a00-9622-42cb-a5a0-6142417e673a@googlegroups.com> |
| Date | Fri, 29 Nov 2013 09:48:36 +1100 |
| Subject | Re: Cannot print greek letters in Python 2.6 |
| From | Chris Angelico <rosuav@gmail.com> |
| Cc | python-list@python.org |
| Content-Type | text/plain; charset=UTF-8 |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.3385.1385678919.18130.python-list@python.org> (permalink) |
| Lines | 22 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1385678919 news.xs4all.nl 15914 [2001:888:2000:d::a6]:34809 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:60741 |
Show key headers only | View raw
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