Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #97058

Re: Readlines returns non ASCII character

Path csiph.com!usenet.pasdenom.info!news.redatomik.org!newsfeed.xs4all.nl!newsfeed7.news.xs4all.nl!nzpost1.xs4all.net!not-for-mail
Return-Path <paul.hermeneutic@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status UNSURE 0.350
X-Spam-Level ***
X-Spam-Evidence '*H*': 0.50; '*S*': 0.20; 'appear.': 0.16; 'subject:non': 0.16; 'to:2**1': 0.21; 'file.': 0.22; 'header:In- Reply-To:1': 0.24; 'message-id:@mail.gmail.com': 0.27; 'heading': 0.27; 'received:google.com': 0.35; 'to:addr:python-list': 0.36; 'subject:: ': 0.37; 'sure': 0.39; 'to:addr:python.org': 0.40; 'space': 0.40; 'from:no real name:2**0': 0.60; 'briefly,': 0.84; 'latin': 0.84; 'plain-text': 0.91; 'quotation': 0.93
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=iUAcvlKxfQhe15/ZEKRK/S2zj37OZI840Us7bxjcR4I=; b=grzxYGRvgpda4SIIcZr1SgBkGiqDCEk/ilakdR7gDMI8SrkV8WS3cGb3P9omxlF7W5 WsqFXz7fULOfremF6jLEskhvuB20WvD+BjRtBQx4PAfKn+hhbm7v2Ri09FzS2H2tAy+K 6doEcerqBc5AMNs4zuC4UxfN/pjkhmKuCIN178fDnnUkbozRpE02gfGr77aVHbKOsDIl umkNRw1ybLBlWMbxXPTNoGwcaA5Z1j7b6D3qRGGReX+Mnu85KAt7VSPz3SiWVT4BQfcB uIF3i2hBfmE9+SZcow7MEzaodDCtpVLj+VJ4QEZcklZrcw9lzmnocqZdhG0FsQu2mFTB tqGA==
X-Received by 10.112.184.196 with SMTP id ew4mr12401104lbc.17.1443053253638; Wed, 23 Sep 2015 17:07:33 -0700 (PDT)
MIME-Version 1.0
In-Reply-To <CAJ4+4aqoYLeeShM+PSR5hxdHa=v_d=XGCY_MifxUPQUwVKuuMQ@mail.gmail.com>
References <CAFHq_S4dQxkQoHhP0hQfNvZ0KVtz2F-PFqbePOyYUGFXCLqipg@mail.gmail.com> <CAJ4+4aoMn+93oQsVXnDF2wmnpDfUbg9zna==v2RVh2DP_o4otg@mail.gmail.com> <CAFHq_S6wVanCc6GKRRRWdYwFcqzq2Cv-Cdz3KPz=hX0w9jZdPw@mail.gmail.com> <CAJ4+4aqoYLeeShM+PSR5hxdHa=v_d=XGCY_MifxUPQUwVKuuMQ@mail.gmail.com>
From paul.hermeneutic@gmail.com
Date Wed, 23 Sep 2015 18:07:14 -0600
Subject Re: Readlines returns non ASCII character
To "SANKAR ." <shankarphy@gmail.com>, python-list@python.org
Content-Type text/plain; charset=UTF-8
X-Mailman-Approved-At Thu, 24 Sep 2015 07:06:22 +0200
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.20+
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.115.1443071184.28679.python-list@python.org> (permalink)
Lines 13
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1443071184 news.xs4all.nl 23792 [2001:888:2000:d::a6]:53547
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:97058

Show key headers only | View raw


After looking at this briefly, I am not sure that this is a plain-text
file. Interpreting it as UTF-16 LE shows that the characters are as
they appear.

Immediately after the BOM is:

SINGLE LOW-9 QUOTATION MARK' (U+201A)
START OF HEADING (U+0001)
SPACE (U+0020)
SPACE (U+0020)
LATIN SMALL LETTER Y WITH DIAERESIS (U+00FF)
LATIN SMALL LETTER THORN (U+00FE)
LATIN SMALL LETTER Y WITH DIAERESIS (U+00FF)

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: Readlines returns non ASCII character paul.hermeneutic@gmail.com - 2015-09-23 18:07 -0600

csiph-web