Was just developing a Rails application with UTF-8 and noticed that characters where displayed wrong. After some examination of all headers etc. I researched a little and found that you simply have to edit /etc/netbeans.conf (for Mac users this is Contents/Resources/Netbeans/etc/netbeans.conf). Just insert a -J-Dfile.encoding=UTF-8 to netbeans_default_options.