|
From: | Peter Dyballa |
Subject: | Re: Opening file in UTF-8 mode automatically |
Date: | Sat, 24 Nov 2007 19:26:15 +0100 |
Am 24.11.2007 um 17:38 schrieb spamfilteraccount:
I tried prefer-coding-system utf-8, but it didn't help.
It might help to set LANG and LC_CTYPE to some UTF-8 value. Another step would be to avoid set-language-environment. Both means – and (prefer-coding-system 'utf-8) works fine for me.
Finally, if the files' extension is quite unique, you could use something like this to bind a file name extension to some particular file encoding:
(add-to-list 'file-coding-system-alist '("\\.tex\\'" . utf-8)) This can be done temporarily.If your files really use a particular mark at the beginning (EF BB BF), you could augment magic-mode-alist, but this does not directly set the file's encoding.
-- Greetings Pete Ce qui été compris n'existe plus. (Paul Eluard)
[Prev in Thread] | Current Thread | [Next in Thread] |