help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: \201 chars showing up in buffer when using emacs from mutt


From: B.T. Raven
Subject: Re: \201 chars showing up in buffer when using emacs from mutt
Date: Thu, 24 Mar 2005 18:39:42 -0600

<Dirk-Jan.Binnema@nokia.com> wrote in message
news:mailman.114.1111668219.28103.help-gnu-emacs@gnu.org...
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.






reply via email to

[Prev in Thread] Current Thread [Next in Thread]