> I have also tried replacing the write() statement with > write( string_content.encode( 'xxxx' )) where I have tried the > encodings 'latin-1' and 'utf-8'; then it does not fail hard, but > instead of the wanted 'øåæ' characters I get '?' marks.
Are you sure that you get '?' on the file if you write it this way, or it's just the console/editor that you're using to see the file's contents that cannot handle the text's encoding? I really think write( string_content.encode( 'xxxx' )) should work fine. Nuno -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.