[Tutor] Unicode Encode Error

Frank Moore francis.moore at rawflow.com
Thu Apr 27 18:15:06 CEST 2006


Kent Johnson wrote:

>Do you explicitly close the output file? If not, the data may not be 
>actually written.
>  
>
Kent,

You're right, I realised after playing with Tim's example that the 
problem was that I wasn't calling close() on the codecs file.
Adding this after the f.write(html_text) seems to flush the buffer which 
means that the content now gets written to the file.

Thanks for your help,
Frank.






More information about the Tutor mailing list