Le 11 Apr 2005, Peter Dyballa a dit : > There are (at least) two ways: > > 1. Create an empty file (b) containing only > > <!-- -*- mode: Text; coding: utf-16-be; -*- --> > > and cat the original file (a) into that (cat a >> b). > > 2. Temporarily set: > > (setq default-buffer-file-coding-system 'utf-16-be) > (set-default-coding-systems 'utf-16-be) > (prefer-coding-system 'utf-16-be) > > (Copy into *scratch* buffer, mark region, eval-region.)
What about changing the coding system just before opening the file ? C-x RET c utf-16-be RET C-x C-f <the file> It would change the coding system locally to the opened file rather than changing it globally for the emacs session. Then the OP could just add the first line as you described in 1) for the next time he will open it. -- S�bastien Kirche _______________________________________________ Help-gnu-emacs mailing list [email protected] http://lists.gnu.org/mailman/listinfo/help-gnu-emacs
