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

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

Selected encoding disagrees ...


From: Eric Pement
Subject: Selected encoding disagrees ...
Date: 9 Apr 2006 19:45:17 -0700
User-agent: G2/0.2

I'm using GNU Emacs for WinNT (ver. 21.3.50.1) with html-helper-mode
(v3.0.4jolly) to edit web pages. My web pages usually carry this HTML
directive ... using braces instead of angle brackets:

  {meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1"}

When I try to save a page, I get this error message from Emacs:

   ------------
   Selected encoding raw-text-dos disagrees with iso-8859-1-dos
specified by file contents.  Really save (else edit coding cookies and
try again)? (yes or no)
   ------------

The strings "dos", "coding" or "encoding" (case-insensitive match) do
not occur in my .emacs file nor in the html-helper-mode.el file. I know
that Emacs is trying to Do The Right Thing to prevent encoding
corruption. I also know that I can type

   Ctrl-X {RET} f iso-8859-1-dos

to set the file encoding. But I want to avoid this message in the first
place if the filetype is .html or .htm. I never use high-bit characters
in my HTML files; every character is below 0x7F, and thus there is no
chance of character-encoding conflict between raw-text-dos and
iso-8859-1. In the case of my .htm* files, I want to suppress this
warning and keep the selected encoding, but for other filetypes, I'd
like to see the warning.

Can someone please suggest the Lisp code to add to my .emacs file to
accomplish this? Thanks in advance.

--
Eric Pement



reply via email to

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