Path: csiph.com!usenet.pasdenom.info!news.redatomik.org!newsfeed.xs4all.nl!newsfeed7.news.xs4all.nl!nzpost1.xs4all.net!not-for-mail Return-Path: 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: References: From: paul.hermeneutic@gmail.com Date: Wed, 23 Sep 2015 18:07:14 -0600 Subject: Re: Readlines returns non ASCII character To: "SANKAR ." , 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: 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 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)