On Wed, 14 Dec 2005 11:04:05 +0100 Ralf Angeli wrote: > * Ralf Angeli (2005-12-14) writes: > >> * David Hansen (2005-12-14) writes: >> >>> file code: 0xFC (encoded by coding system windows-1252-unix) >> >> Argh, yes, that was the problem. Not so much a typo, I simply used >> the wrong coding system. Thanks for setting me right (twice). > > Now that this is settled, would it be possible for Emacs to figure out > the right coding system by itself in the case at hand? That means > without me having to specify coding systems explicitely by means of > preferred coding system options, coding cookies, or `C-x RET c' and > similar.
Actually i don't know exactly how emacs chooses the coding. This seems to work for me but may break other stuff and you may want to move the utf-8 line up if you prefer latin-1 over utf-8. (prefer-coding-system 'latin-1) (prefer-coding-system 'latin-9) (prefer-coding-system 'windows-1252) (prefer-coding-system 'utf-8) But I would avoid the use of windows-1252 coding and just use a tool like iconv to convert such files to utf-8 or latin-9. David _______________________________________________ emacs-pretest-bug mailing list [email protected] http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug
