Find in Files - Needs Error Notification for Non-ANSI char.
Posted: Mon Jul 31, 2006 3:12 pm
Today I performed a Find in Files search on a text file whose contents were a scripted out SQL stored procedure list. The file size was roughly 1,943 KB. The search worked up to a point, but failed to find matches that resided near the end of the file. For instance it found a match on line 688, but didn't find a match on line 10036. Yet opening the file in TextPad and manually performing a Find would find each match in succession without problem.
After a little work I determined the search would not exceed line number 3040. Apparently due to the existance of a character not available in ANSI - Latin I; however I did not get a error message or warning notification to this effect. The only reason I know "why" this was happening was because of an error message displayed when I attempted to compare my original file against one in which I had modified line 3040. Perhaps this error could be returned in the search results window so people know that the entire file was not processed during the search.
P.S. The character sequence in question, was a double carriage return followed by a line feed [0D 00 0D 00 0A 00], which when fixed changed to two carriage return / line feeds [0D 00 0A 00 0D 00 0A 00].
After a little work I determined the search would not exceed line number 3040. Apparently due to the existance of a character not available in ANSI - Latin I; however I did not get a error message or warning notification to this effect. The only reason I know "why" this was happening was because of an error message displayed when I attempted to compare my original file against one in which I had modified line 3040. Perhaps this error could be returned in the search results window so people know that the entire file was not processed during the search.
P.S. The character sequence in question, was a double carriage return followed by a line feed [0D 00 0D 00 0A 00], which when fixed changed to two carriage return / line feeds [0D 00 0A 00 0D 00 0A 00].