"Eric Brunel" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
>
> Replying to myself. One more funny thing:
>
> >>> import codecs, xreadlines
> >>> f = codecs.open('foo.txt', 'r', 'utf-8', 'replace')
> >>> [l for l in xreadlines.xreadlines(f)]
> [u'\ufffd\ufffd']

You've specified utf-8 as the encoding instead of iso8859-1,
by the way.


-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to