This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author da
Recipients Elena.Oat, da
Date 2018-04-26.18:02:41
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1524765761.74.0.682650639539.issue33361@psf.upfronthosting.co.za>
In-reply-to
Content
That's because the stream isn't transcoding, since UTF-8 is ASCII-compatible. Try using something not ASCII-compatible as the codec e.g. 'ibm500' and it'll give incorrect results.

```
b = io.BytesIO(u'a,b\r\n"asdf","jkl;"\r\n'.encode('ibm500'))
s = codecs.EncodedFile(b, 'ibm500')
```

```
Got header: '\x81k\x82\r%'
Skipping the header. '\x7f\x81\xa2\x84\x86\x7fk\x7f\x91\x92\x93^\x7f\r%'
Line 2: '\x81k\x82\r%'
Line 3: '\x7f\x81\xa2\x84\x86\x7fk\x7f\x91\x92\x93^\x7f\r%'
```
History
Date User Action Args
2018-04-26 18:02:41dasetrecipients: + da, Elena.Oat
2018-04-26 18:02:41dasetmessageid: <1524765761.74.0.682650639539.issue33361@psf.upfronthosting.co.za>
2018-04-26 18:02:41dalinkissue33361 messages
2018-04-26 18:02:41dacreate