
|
[openbeos]
||
[Date Prev]
[06-2006 Date Index]
[Date Next]
||
[Thread Prev]
[06-2006 Thread Index]
[Thread Next]
[openbeos] Re: Identifying Text Files
- From: "Alexander G. M. Smith" <agmsmith@xxxxxxxxxx>
- To: openbeos@xxxxxxxxxxxxx
- Date: Thu, 08 Jun 2006 22:34:31 -0400 EDT
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
|

|