[Top][All Lists]

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

Re: Coding system prefer

From: Teemu Likonen
Subject: Re: Coding system prefer
Date: Tue, 03 Mar 2009 16:18:48 GMT
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux)

On 2009-03-03 06:58 (-0800), Jason Rumney wrote:

> On Mar 3, 7:46 pm, Maze <address@hidden> wrote:
>> I need to work with files in cp1251 and cp866
> ...
>> How can i use both coding together?
> You can't. Both these encodings are indistinguishable from binary
> data, so all files will be auto-detected as whichever is first in the
> priority list.

If the files can be detected by filename then variable auto-coding-alist
may be useful. As the name says it's an association list consisting of
items "(REGEXP . CODING-SYSTEM)". There is also the variable
auto-coding-functions which is a list of functions for determining
conding systems. For more info, see:

    C-h v auto-coding-alist RET
    C-h v auto-coding-functions RET

reply via email to

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