I notice the same thing when opening some .java files, depending on how the files were created (for example, in JBuilder or some other
IDE).
I think it comes from Notepad being a very simple text editor. Wordpad is slightly "smarter", so it knows how to handle special characters and formatting better.