On 2006-12-31 15:13:57 +0100, Romain Francoise wrote: > Yes, that's because you have a different encoding specified in the > META tag of the HTML snippet, and Emacs uses it to set the encoding > for the buffer. > > You have two solutions: > > - add -*- coding: utf-8 -*- at the top of your file to specify that > this file is to be read as utf-8 (this disables auto-detection); or > > - move the HTML snippet out of the first 1K bytes (or last 3K > bytes) of the buffer to prevent it from being recognized > automatically (which is less practical).
The file was generated by a reply by mail (the HTML code was included in my reply). So I didn't write it and couldn't (and wouldn't want to) change it. > I'm not sure that this really qualifies as a bug -- in almost all > cases, using the encoding specified in the HTML headers is the right > thing to do regardless of what's really in the buffer. It probably is in HTML mode, but not in other modes. Or Emacs should look at the other parts of the file. > And disabling auto-detection can be achieved easily on a per-file > basis with a coding cookie, as shown above. I don't want to disable every auto-detection. -- Vincent Lefèvre <[EMAIL PROTECTED]> - Web: <http://www.vinc17.org/> 100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/> Work: CR INRIA - computer arithmetic / Arenaire project (LIP, ENS-Lyon) -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]