Netbeans with utf-8
From Birnam Designs Wiki
To tell Netbeans to use UTF-8 as the default file encoding, edit netbeans.conf, e.g. /usr/local/netbeans-6.7/etc/netbeans.conf and add this to the netbeans_default_options string:
-J-Dfile.encoding=UTF-8
(thanks uberdose!)