all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Sergio <sergio.pokrovskij@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Coding system prefer
Date: Thu, 5 Mar 2009 00:06:14 -0800 (PST)	[thread overview]
Message-ID: <04ac2466-1f6f-4911-99db-37ed5754341e@s38g2000prg.googlegroups.com> (raw)
In-Reply-To: buobpsgha9w.fsf@dhlpc061.dev.necel.com

On Mar 5, 10:19 am, Miles Bader <mi...@gnu.org> wrote:
> Sergio <sergio.pokrovs...@gmail.com> writes:
>> The FAR file manager,http://en.wikipedia.org/wiki/FAR_Managerdoes it
>> quite reliably using statistics about the character frequency
>> distribution.

> Does that work for anything except text files containing prose?

Yes, it does.

Of course it does not work for a binary file; but it works fine for a
text file in formal language, like C program with Russian strings or a
text with HTML markup.

I never explored the internals, but I guess that normally one can
ignore the ASCII part; only codes greater than 127 really matter.  Of
these, one can easily detect utf-8 or other unicode encoding (at least
for the alphabetic planes; I never need the CJK part).  And there are
8-bit codes, in which the higher part is characteristic.

And usually the noise part (like markup or formal language statements)
is in ASCII.

I never needed EBCDIC or any other encoding which is not a superset of
ASCII.

--
Sergei



  reply	other threads:[~2009-03-05  8:06 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
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 [this message]
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=04ac2466-1f6f-4911-99db-37ed5754341e@s38g2000prg.googlegroups.com \
    --to=sergio.pokrovskij@gmail.com \
    --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.