[openbeos] Re: Identifying Text Files

Ingo Weinhold wrote on Thu, 08 Jun 2006 21:47:11 +0200:
> A simple but maybe a bit ignorant approach would be to check whether the 
> buffer contains valid UTF-8 characters only (or more than, say, 95%). But 
> maybe someone has better ideas...

Also how about line endings and other character sets like Windows-ANSI?
I know Gobe Productive did something magic, and also treated text files
as spreadsheets if it found tab characters in them.

- Alex

Other related posts: