This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
I found that Netbeans doesn't recognize BOM header for at least utf8 files. For utf8 files, it is sequence of the first 3 bytes in a file: 0xEF 0xBB 0xBF. In result file is loaded with additional '-' character on the top See more: http://en.wikipedia.org/wiki/Byte_order_mark#UTF-8
*** This bug has been marked as a duplicate of bug 161015 ***