From: Sergey Korobitsin <undertaker@arta.kz> To: smoke-room@lists.altlinux.org Subject: Re: [room] Как найти файл в определённой кодировке? Date: Mon, 22 Aug 2011 17:53:25 +0600 Message-ID: <20110822115325.GI2067@undertaker.dev.lan.arta.kz> (raw) In-Reply-To: <CADbnjxHNpzgLTEqU4w-BeR1agKK4YdK5OvzRVCpTDa9ys8Z-rA@mail.gmail.com> Денис Черносов ☫ → To Культурный офтопик @ Mon, Aug 22, 2011 14:01 +0400 > Добрый день всем! > > > Есть проект, которые разрабатывался в течение долгого времени самыми разными > людьми. В нём в хаотичном порядке встречаются файлы в кодировке cp1251 > (остальные в юникоде). > > 1) Есть ли автоматический способ получить список файлов, в cp1251 для > (полу)автоматической конвертации в юникод? AFAIR, recode при указании перекодировать cp1251->unicode уже unicode-ный файл не тронет (у меня был положительный опыт, но лучше попробовать). > 2) Аналогичный вопрос про переносы строк в стиле Windows|Unix... Аналогично здесь. AFAIK, все преобразователи делают замену \r\n на \n, соответственно юниксный файл будет содержать только \n и заменятор заменять ничего не будет. Но вначале всё равно стоит поэкспериментировать. -- Bright regards, Sergey Korobitsin, Chief Research Officer Arta Software, http://arta.kz/ xmpp:undertaker@jabber.arta.kz -- ...Когда я увидел перед собой перспективу жизни, прожитой так же, как живет весь мир, я решил - ни за что, это отвратительно, мне будет стыдно самого себя. Если бы я участвовал в поддержке этой системы отчужденного, собственнического программирования, мне казалось бы, что я делаю мир хуже ради денег. -- Ричард М. Столлман (из интервью)
next prev parent reply other threads:[~2011-08-22 11:53 UTC|newest] Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top 2011-08-22 11:06 ` Alexei V. Mezin 2011-08-24 10:09 ` Alexei V. Mezin 2011-08-22 11:53 ` Sergey Korobitsin [this message] 2011-08-24 10:14 ` Alexei V. Mezin 2011-08-24 10:23 ` Andrew Borodin 2011-08-25 20:18 ` Aleksey Avdeev 2011-08-24 10:19 ` Aleksey Avdeev 2011-08-24 11:43 ` Sergey Korobitsin
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=20110822115325.GI2067@undertaker.dev.lan.arta.kz \ --to=undertaker@arta.kz \ --cc=smoke-room@lists.altlinux.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
Культурный офтопик This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/smoke-room/0 smoke-room/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 smoke-room smoke-room/ http://lore.altlinux.org/smoke-room \ smoke-room@lists.altlinux.org smoke-room@lists.altlinux.ru smoke-room@lists.altlinux.com smoke-room@altlinux.ru smoke-room@altlinux.org smoke-room@altlinux.com public-inbox-index smoke-room Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.smoke-room AGPL code for this site: git clone https://public-inbox.org/public-inbox.git