<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Hi all,
I am using emacs as the editor for mutt; however, I have never been able to get it working correctly, as quite often emacs will not detect that a text file is, in fact utf8 (that's when i get the '\201' character before accented characters like in German). I've found similar problems on the mailing list, but no solution that seems to work; that includes setting utf8 as the preferred encoding.Also, it does not really seem to matter what charset I use in mutt, or my exact setting in .emacs. So does anyone have bullet proof settings such that I will never see that dreaded \201 again? I am *almost* capabable of just removing them trough some hook function when I start emacs, but taht seems very evil. Thanks in advance Dirk. The next time you see all the characters correctly displayed in the buffer, put ;; -*- coding: utf-8 -*- at the top of the file. Then type C-x RET f utf-8 before saving the buffer again. This explicit hint in the first line of the file will prevent emacs from considering any other encoding when it reads the file again. I don't know what mutt is but if it executes the text file, maybe the line starting with ;; could be wrapped in another kind of multi-line comment (like /*....*/ in C) C-x RET I utf-8 should also work since (I think) default-buffer-file-coding-system's value is persistent across sessions. Alternatively you could set currentl-language-environment with M-x customize but then you would get the rtf1345 input method which probably doesn't work (w32) or maybe you don't want. Ed. _______________________________________________ Help-gnu-emacs mailing list [email protected] http://lists.gnu.org/mailman/listinfo/help-gnu-emacs
