Thank you so far. The django app is developed on Ubuntu, so I assume there it's unixy. The two scripts were actually windowsy, but they are both. I changed the utf8 one to Unix-line-endings, but the problem remains. ... after I changed the encoding of the UTF8-file to ansi, it works. ---------------- Later this evening ------ Ha, got it: I had to remove the BOM from the UTF8 file. Now, if this is also the problem with my django application (currently merely a hello-world) then it would be rather annoying to have the BOM removed from every file that is created from python/django. Well, I will look into this during the weekend.