in reply to Distinguishing text from binary data
You could look at the perl implementation of the unix file utility. It is(was) part of the PPT project.
DejaVu Sans Mono
Droid Sans Mono
Envy Code R
Source Code Pro
The default, whatever it is
Results (390 votes). Check out past polls.