<<< Date Index >>>     <<< Thread Index >>>

Re: Emacs opening post files as latin-1 and the rest as UTF-8



Stefano Sabatini wrote:
> Ismael Valladolid Torres wrote:
> > What can be making Emacs not to change the language environment when
> > opening a mutt temporal post file?
>
> I'll say it could be post-el fault.
> Maybe it's changing the coding system when setting the mail
> mode (or maybe some other specialized post-mode).
> 
> Try to check the mail-mode-hook or an eventual post-mode-hook variables
> to see if they mess up the language environment/encoding, and/or try
> to disable post-el to see if it works correctly without.
> 
> Or you could try to force the encoding when opening mail files with
> something as:
> 
> (add-hook 'mail-mode-hook '(setq buffer-file-coding-system 'mule-utf-8))

I have the following set in emacs and this seems to work for me.  I
have no idea if it is related to your issue or not.  This is just a
quick brainstorm idea.

  (prefer-coding-system 'utf-8)

Bob