<div class="gmail_quote">On Thu, Dec 22, 2011 at 2:17 PM, Peter Otten <span dir="ltr"><__<a href="mailto:peter__@web.de">peter__@web.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">You are now one step further, you have successfully* decoded the file.</div>
The remaining step is to encode the resulting unicode lines back into bytes.<br>
The encoding implicitly used by the print statement is sys.stdout.encoding<br>
which is either "ascii" or None in your case. Try to encode explicitly to<br>
UTF-8 with<br>
<br>
f = codecs.open(p + "2.txt", "r", "iso-8859-1")<br>
for line in f:<br>
    print line.encode("utf-8")<br>
<br><br></blockquote><div>OOEEE! Thanks!</div><div>Stan </div></div><br>