Emacs, Nxml-Mode and Unicode
I've run into this too many times and fixed just as many.. grr. And i always forget.. Time to write it down.
Problem is, if you just start writing XML in that mode, the resulting file will be Unicode encoded. There is a fix to this. Write proper XML :) Basically, first add this to your .emacs file:
Next, make sure you got your proper XML header:
Tada! File is saved in proper form.
Just to be all proper and stuff, I use this header for my html/xhtmlL