Пакетное перекодирование текстовых файлов

Здесь обсуждаются темы, косвенно связанные с Far.
User avatar
t-rex
Страшный и ужасный
Posts: 4910
Joined: Tue 15 Mar, 2005 16:17
Location: Tel-Aviv
Has thanked: 1 time
Been thanked: 8 times
Contact:

Re: Пакетное перекодирование текстовых файлов

Post by t-rex »

Latest post of the previous page:

iconv -c
User avatar
Centaur
Posts: 1083
Joined: Tue 05 Apr, 2005 20:09
Location: Novosibirsk, Russia
Been thanked: 2 times

Re: Пакетное перекодирование текстовых файлов

Post by Centaur »

-с замаскирует другие непереводимые символы.
User avatar
t-rex
Страшный и ужасный
Posts: 4910
Joined: Tue 15 Mar, 2005 16:17
Location: Tel-Aviv
Has thanked: 1 time
Been thanked: 8 times
Contact:

Re: Пакетное перекодирование текстовых файлов

Post by t-rex »

Само собой, но у человека проблем таких нет. А -c очень просто помогает решить "проблему" с бомом.
User avatar
John Doe
Бюрократ
Posts: 13801
Joined: Wed 27 Apr, 2005 20:42
Has thanked: 72 times
Been thanked: 425 times
Contact:

Re: Пакетное перекодирование текстовых файлов

Post by John Doe »

www.ltr-data.se wrote:txtcnv32.zip - 2.81 KB - compiled 2006-03-08 - Converts text files or text streams from ANSI codepage to OEM codepage or vice versa. With this new release it is now also possible to specify codepages to convert from and to, or to convert from or to 16-bit Unicode from or to a specific codepage.
http://www.ltr-data.se/files/txtcnv32.zip

Code: Select all

txtcnv32.exe -e:1251 < FarSave1.reg > FarSave1_1251.reg
а BOM превращается в "?".
User avatar
John Doe
Бюрократ
Posts: 13801
Joined: Wed 27 Apr, 2005 20:42
Has thanked: 72 times
Been thanked: 425 times
Contact:

Re: GnuWin32, MSYS, UnxUtils, Cygwin и пр.

Post by John Doe »

SeMa wrote:
SlashNet wrote:Скорее всего iconv ругается на BOM. (Я его удалил - все заработало)
как удалить?
http://www-user.tu-chemnitz.de/~heha/hs ... nscode.zip
User avatar
John Doe
Бюрократ
Posts: 13801
Joined: Wed 27 Apr, 2005 20:42
Has thanked: 72 times
Been thanked: 425 times
Contact:

Пакетное перекодирование текстовых файлов

Post by John Doe »

http://site.icu-project.org/download
uconv wrote:[...]For transcoding purposes, uconv options are compatible with those of iconv(1), making it easy to replace it in scripts.
Post Reply

Return to “Операционные системы, командные оболочки и прочее”