How can I output data with special characters visible?
===

I have a text file that was provided to me and no one knows the encoding on it. Looking at it in a text editor, everything looks fine, aligned properly into neat columns. 

However, I'm seeing some anomalies when I **read** the data. Even though, visually, the field "Foo" appears in the same columns in the text file (for instance, in columns 15-20), when I try to pull it out using `substring(15,20)` my data varies wildly. Sometimes I'll pull bytes 11-16, sometimes 18-23, sometimes 15-20...there's no consistency between records. 

I suspect that there are some special chartacters, invisible to my text editor, but readable by (and counted in the index of) the `String` methods. Is there any way in Java to dump the contents of the file with any special characters visible so I can see what I need to Strings I need replace with regex?

If not in Java, can anyone recommed a tool that may be able to help me out? 