Perl Monk, Perl Meditation | |
PerlMonks |
Re^2: Distinguishing text from binary databy maard (Pilgrim) |
on Oct 06, 2004 at 10:26 UTC ( [id://396930]=note: print w/replies, xml ) | Need Help?? |
Also don't forget about non-english encodings in which form data can be sent (english coders often forget about it :-) ). IMO, presence of 0x00..0x1F bytes in such data as HTTP response can mark it as binary (unless the form is sent in utf-8). So maybe you should take into consideration charset from Content-Type header and only then analyze byte/character stream.
In Section
Seekers of Perl Wisdom
|
|