I added a bit support for this. If you add
-*- slime-coding: utf-8-unix -*-
to your file, SLIME will pass it as :external-format argument to COMPILE-FILE. It only works for C-c C-k and only for a few backends.
Thanks a lot.
Just a naive question: are there cases where slime-coding and coding would be different?
Frédéric