all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Teemu Likonen <tlikonen@iki.fi>
To: help-gnu-emacs@gnu.org
Subject: Re: Coding system prefer
Date: Tue, 03 Mar 2009 16:18:48 GMT	[thread overview]
Message-ID: <87wsb6k2af.fsf@iki.fi> (raw)
In-Reply-To: 08d040d9-1324-4d34-bc6f-9c77bb7a282f@f1g2000prb.googlegroups.com

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

> On Mar 3, 7:46 pm, Maze <maze...@gmail.com> 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	other threads:[~2009-03-03 16:18 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-03 11:46 Coding system prefer Maze
2009-03-03 14:58 ` Jason Rumney
2009-03-03 16:18   ` Teemu Likonen [this message]
2009-03-03 20:55     ` Maze
2009-03-04  9:11       ` Peter Dyballa
2009-03-04  9:53       ` Fedor Khod'kov
     [not found]       ` <mailman.2324.1236157912.31690.help-gnu-emacs@gnu.org>
2009-03-04 11:01         ` Sergio
2009-03-05  4:19           ` Miles Bader
2009-03-05  8:06             ` Sergio
2009-03-20  9:06               ` Maze
2009-03-04 11:51       ` Fedor Khod'kov
2009-03-04 18:48       ` Eli Zaretskii
2009-03-03 21:44 ` Peter Dyballa

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87wsb6k2af.fsf@iki.fi \
    --to=tlikonen@iki.fi \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.