Re: Unicode challenged

2010-08-09 Thread Joakim Hove
Thank you for answering; > 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? When it comes to Unicode and such I am not sure about anything. But you are p

Re: Unicode challenged

2010-08-09 Thread Nuno Maltez
> I have also tried replacing the write() statement with > write( string_content.encode( '' )) 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 wr

Unicode challenged

2010-08-09 Thread Joakim Hove
Hello, I am developing a Django application, and have some Unicode problems. I must admit I do not really understand if my problems are with Django or Python or ... ; but hopefully someone her can shed some light on the problem. Setup: 1. The application is developed for the Scandinavian countri