From: Alexey Rusakov <ktirf@users.sf.net>
To: community@altlinux.ru
Subject: Re: [Comm] Автораспознавание кодировки?
Date: Mon, 08 Nov 2004 23:30:02 +0300
Message-ID: <418FD74A.4030600@users.sf.net> (raw)
In-Reply-To: <418FD594.3000403@ramendik.ru>
On 08.11.2004 23:22, Mikhail Ramendik wrote:
> Хотелось бы завести скрипт, который по статистике распознаёт кодировку
> русского письма, а затем ставит ему правильный charset в header.
>
> Наверняка такое уже делали. не подскажет ли кто, есть ли оно где-то?
> Если вдруг в Сизифе - устроит, выну, только скажите что именно :)
В Сизифе, по крайней мере, лежит enca, которая умеет определять
кодировку произвольного файла, в том числе из stdin. Из нее и sed
нетрудно сделать скрипт, делающий требуемое.
--
Alexey "Ktirf" Rusakov
next prev parent reply other threads:[~2004-11-08 20:30 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-11-08 20:22 Mikhail Ramendik
2004-11-08 20:30 ` Alexey Rusakov [this message]
2004-11-08 23:46 ` Mikhail Ramendik
2004-11-09 20:04 ` Денис Смирнов
2004-11-12 5:34 ` Alexey V. Novikov
2004-11-12 16:20 ` Денис Смирнов
2004-11-12 22:33 ` Andrey Orlov
2004-11-13 15:12 ` Денис Смирнов
2004-11-13 21:04 ` Денис Смирнов
2004-11-13 23:35 ` Andrey Orlov
2004-11-15 10:01 ` Anton V. Boyarshinov
2004-11-16 18:02 ` Денис Смирнов
2004-11-16 19:53 ` Andrey Orlov
2004-11-16 20:15 ` Денис Смирнов
2004-11-16 21:34 ` Andrey Orlov
2004-11-17 18:45 ` dm
2004-11-18 0:08 ` Andrey Orlov
2004-11-12 22:30 ` Andrey Orlov
2004-11-13 15:16 ` Денис Смирнов
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=418FD74A.4030600@users.sf.net \
--to=ktirf@users.sf.net \
--cc=community@altlinux.ru \
/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
ALT Linux Community general discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
public-inbox-index community
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.community
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git