> Using text.encode("ascii", "ignore") should absolutely work. You could also
> just write the file in UTF-8 if you don't absolutely need ascii by using
> text.encode("utf-8").
>
> Hugo
You're right. It does work. I forgot to assign the result to a variable:
text = text.encode("ascii", "ignore")
Thanks._______________________________________________ Tutor maillist - [email protected] To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
