Hi Vincent, Vincent Lefevre <[EMAIL PROTECTED]> writes:
> When I open the attached file with > emacs-snapshot-gtk emacs22-encoding > the 3 accented characters are displayed as: > \303\251\303\250\303\252 > Without the HTML lines, the file is opened correctly. 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). 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. And disabling auto-detection can be achieved easily on a per-file basis with a coding cookie, as shown above. Cheers, -- ,''`. : :' : Romain Francoise <[EMAIL PROTECTED]> `. `' http://people.debian.org/~rfrancoise/ `- -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]