[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Opening file in UTF-8 mode automatically
From: |
Reiner Steib |
Subject: |
Re: Opening file in UTF-8 mode automatically |
Date: |
Sat, 24 Nov 2007 19:38:45 +0100 |
User-agent: |
Gnus/5.110007 (No Gnus v0.7) Emacs/22.1.50 (gnu/linux) |
On Sat, Nov 24 2007, spamfilteraccount@gmail.com wrote:
> I need to edit some UTF-8 files and it's very annoying emacs doesn't
> detect it automatically (I have to reopen them as utf-8 manually) and
> sometimes I notice it only after I already edited and saved the file
> which messes up the formatting.
>
> I tried prefer-coding-system utf-8, but it didn't help.
>
> I can't put lisp code into the files, because they are data files.
>
> Is there a definitive way to do it? The BOM is at the beginning of the
> files, so Emacs could detect it automatically.
>
> It's emacs 22.
`auto-coding-regexp-alist' in Emacs 22 already has an entry for the
BOM: ("\\`\xEF\xBB\xBF" . utf-8).
Either you have removed this entry or there is a bug. If the latter,
please report it as a bug (M-x report-emacs-bug RET) along with a
small gzipped sample document and a recipe starting from "emacs -Q" to
reproduce the problem.
Bye, Reiner.
--
,,,
(o o)
---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/
- Opening file in UTF-8 mode automatically, address@hidden, 2007/11/24
- Re: Opening file in UTF-8 mode automatically, Peter Dyballa, 2007/11/24
- Re: Opening file in UTF-8 mode automatically,
Reiner Steib <=
- Re: Opening file in UTF-8 mode automatically, Eli Zaretskii, 2007/11/24
- Message not available
- Re: Opening file in UTF-8 mode automatically, address@hidden, 2007/11/25
- Re: Opening file in UTF-8 mode automatically, Eli Zaretskii, 2007/11/25
- Message not available
- Re: Opening file in UTF-8 mode automatically, address@hidden, 2007/11/27
- Re: Opening file in UTF-8 mode automatically, Zhang Wei, 2007/11/27
- Re: Opening file in UTF-8 mode automatically, Eli Zaretskii, 2007/11/27
- Re: Opening file in UTF-8 mode automatically, Reiner Steib, 2007/11/27