emacs-devel
[Top][All Lists]
Advanced

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

Detecting BOM for UTF files


From: Sébastien Kirche
Subject: Detecting BOM for UTF files
Date: Wed, 15 Oct 2003 15:55:54 +0200

Hi,
I recently had to switch my .emacs to UTF-8 encoding, because I was annoyed with proper encoding of french acccents between my home Emacs (win + linux) and my work Emacs (Mac OS X).

I saw then that Emacs cannot recognize automagically the UTF format of my .emacs when reloading it. I seen that there is neither BOM (byte order mark) at the beginning, nor adding one helps.

It was also fixed by adding

; -*- mode: emacs-lisp; coding: utf-8; -*-

at the begining.

Emacs seems to handle properly UTF files, but couldn't he "guess" their encoding by reading BOMs ?

Sébastien Kirche





reply via email to

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