Recently, a colleague of mine received a small patch via email to apply it with Eclipse. To our both suprise the version that worked perfectly for me lead to syntax errors in his side. The patch seemed to be ok and so did the resulting Java code – apart from the syntax error.
For some unexplained reasons one of the spaces (0×20) had been replaced with another character (0xCA) which looks perfectly in any text editor but forces Eclipse to stop with an error. This might be connected with a common mistake I am doing regularly when switching between different types of computers is hitting <ALT>+<SPACE> on my Mac. This produces an “erroneous white space”, too!
Meanwhile, I am using Hex Fiend to quickly analyze Java code with such errors but also to look into arbitrary binary data. It allows you to paste snippets from your clipboard directly into the editor and does not force you to search and open a file before. Although it works perfectly with huge files of several Gigabytes (or even Petabytes if you trust their own words) working with the clipboard is really handy. Beyond this it allows you to convert byte ranges to different integer formats and the find/replace actions concentrate on binary data as well.
Give it a try when you have to analyze binary data or your next strange text file the next time.