Если вам нужно узнать кодировку определенного файла, вы можете использовать команду file
:
$ cat findenc.txt
Let f be a measurable function from (Ω,F,μ) to (R,B(R)).
then
μ(|f|>t) as a function of t is Riemann integrable over [0,∞).
the expectation of the measure f induces on its codomain i.e. ∫_Ω |f| dμ = ∫_[0,∞) μ(|f|>t)
$ file findenc.txt
findenc.txt: UTF-8 Unicode text
$
Я не уверен, какую версию emacs вы используете, но файл автоматически мне кажется правильным в emacs24 и emacs23, а также в gedit и vi, без необходимости изменять какие-либо настройки (Ubuntu 14.04).
Я рекомендую использовать следующее содержимое задания:
# The deconfiguring-networking bit stops the network from going down until we are done here.
start on runlevel [016] or deconfiguring-networking
task
exec /path/to/myscript.sh