When you debug and notice that "myString".equals("myString") evaluates to false...and after an hour realize it's a 'Byte Order Mark', which of course Java doesn't handle properly. Ended up using BomInputReader from Apache commons, which made my life simpler.

If I ever want to inflict pain on other developers, I shall write files to disk with a byte order mark. 😂

Add Comment