From: Sergey Degtyaryov <maga@globetravel.spb.ru> To: Sergey Degtyaryov <mandrake-russian@altlinux.ru> Subject: [mdk-re] Re: [mdk-re] Как определить кодировку? Date: Thu Aug 2 12:08:01 2001 Message-ID: <11517.010802@globetravel.spb.ru> (raw) In-Reply-To: <10511.010802@globetravel.spb.ru> Доброго времени суток, Sergey, 02.08.2001 в 12:16 Вы сказали буквально следующее: SD> Доброго времени суток, cornet, SD> 02.08.2001 в 11:52 Вы сказали буквально следующее: c>> Буду рад если я ошибаюсь и кто то скажет как можно определить c>> кодировку обычного текстовика кроме как наметанным глазом. SD> Это можно и нужно использовать. Да, конвертируется регистр букв русского алфавита. Таким образом, поставив, например, 50% - как уровень количества заглавных букв, анализируем текст. Получили больше 50% - текст надо перекодировать, получили меньше - открыли правильно. 50% - из головы, но думается, что вполне подойдет. Тексты, естественно средние, крайности вроде ПИСЕМ О НЕМЕДЛЕННОМ СПАСЕНИИ ОТ ЭТОГО ЛИНУКСА распознаваться не будут. Естественно все это относится к koi8 и win1251 Rgds, maga, maga@mail.ru
next prev parent reply other threads:[~2001-08-02 12:08 UTC|newest] Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top 2001-08-02 11:29 Баталов Григорий 2001-08-02 11:48 ` [mdk-re] " cornet 2001-08-02 11:59 ` Sergey Degtyaryov 2001-08-02 12:08 ` Sergey Degtyaryov [this message] 2001-08-02 13:04 ` cornet 2001-08-02 21:09 ` [mdk-re] Re: [mdk-re] Как определитькодировку? Alex A. Puchkov 2001-08-02 12:10 ` [mdk-re] Re: [mdk-re] Как определить кодировку? Баталов Григорий 2001-08-02 13:04 ` Antonio 2001-08-02 17:23 ` Баталов Григорий 2001-08-02 22:14 ` Serge Skorokhodov 2001-08-02 12:45 ` [mdk-re] " Mikhail Zabaluev 2001-08-02 12:09 ` [mdk-re] Re: [mdk-re] " Dmitri D. Sayakin
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=11517.010802@globetravel.spb.ru \ --to=maga@globetravel.spb.ru \ --cc=mandrake-russian@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