Quote:
Originally Posted by Patrice Dargenton
With entire book, your code is very very slow...
|
Exactly what do you expect with a large document? To complain about the speed betrays a totally unrealistic expectation. As even VBorNotVB said, the code:
Quote:
works really well and it's fast too
|
Quote:
Originally Posted by Patrice Dargenton
it doesn't works: there are false positive, saying that the document contains Unicode characters whereas it is false.
…
Your code says that for example character É is a Unicode character, this is ambiguous, because it can finally be saved using ANSI encoding.
|
Your fault-finding is rude! You can't reasonably expect a test for Unicode characters to say a given Unicode character isn't Unicode just because there's an ASCII equivalent to represent the same character (e.g. É). If you don't want to use a Unicode character when there's an ASCII equivalent, that's your responsibility, but don't go criticizing others when the solution is correct for the problem as described and any problems are due to your poor description of what you want to achieve.