[Moscow.pm] определение наличия в файле непечатных символов
Maxim Vuets
maxim.vuets на gmail.com
Ср Сен 3 13:47:23 PDT 2008
03.09.08, Kaltashkin Eugene<zhecka на gmail.com> написал(а):
> Может кто подскажет каким образом можно точно определить наличие в файле
Еще вот вариант, как делает это diff:
diff determines whether a file is text or binary by checking
the first few bytes in the file; the exact number of bytes is
system dependent, but it is typically several thousand.
If every character in that part of the file is non-null, diff
considers the file to be text; otherwise it considers
the file to be binary.
Можно пробовать делать это для каждого кусочка
multipart сообщения.
--
Hoc est simplicissimum!
maxim.vuets.name
Подробная информация о списке рассылки Moscow-pm