Error: 4invalid UTF-8 sequence :: How can I catch this?? (or otherwise handle it)

2009-10-21 Thread Charles Hixson
I want to read a bunch of files, and if the aren't UTF, then I want to list their names for conversion, or other processing. How should this be handled?? try..catch..finally blocks just ignore this error.

Re: Error: 4invalid UTF-8 sequence :: How can I catch this?? (or otherwise handle it)

2009-10-21 Thread Daniel Keep
Charles Hixson wrote: > I want to read a bunch of files, and if the aren't UTF, then I want to > list their names for conversion, or other processing. How should this > be handled?? > > try..catch..finally blocks just ignore this error. > type stuff.d import std.stdio; import std.utf; void mai

Re: Error: 4invalid UTF-8 sequence :: How can I catch this?? (or otherwise handle it)

2009-10-21 Thread Charles Hixson
Daniel Keep wrote: Charles Hixson wrote: I want to read a bunch of files, and if the aren't UTF, then I want to list their names for conversion, or other processing. How should this be handled?? try..catch..finally blocks just ignore this error. type stuff.d import std.stdio; import std.ut

Re: Error: 4invalid UTF-8 sequence :: How can I catch this?? (or otherwise handle it)

2009-10-22 Thread Charles Hixson
Charles Hixson wrote: I want to read a bunch of files, and if the aren't UTF, then I want to list their names for conversion, or other processing. How should this be handled?? try..catch..finally blocks just ignore this error. OK. One approach that occurs to me is to read the data in as a by

Re: Error: 4invalid UTF-8 sequence :: How can I catch this?? (or otherwise handle it)

2009-11-01 Thread Charles Hixson
Charles Hixson wrote: Daniel Keep wrote: Charles Hixson wrote: I want to read a bunch of files, and if the aren't UTF, then I want to list their names for conversion, or other processing. How should this be handled?? try..catch..finally blocks just ignore this error. type stuff.d import st