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.
February 23rd, 2009 at 12:19 pm
Thx, very handy article ;).
February 24th, 2009 at 9:36 am
it works, thx
March 3rd, 2009 at 5:28 pm
great, thx!
March 8th, 2009 at 8:52 am
it worked for farsi
thanks for your brief but useful article
March 22nd, 2009 at 10:06 pm
Hi,
thanks a lot for this. I was tearing my hair out trying to debug a mysql issue of he sort with netbeans only to understand by reading your article that it was displaying my variables with the wrong encoding (who would have thought)
Any idea why this setting isn’t the standard in netbeans? creation of files is already utf-8…
making the change to utf-8 in my apps has turned out to be reaaaaly difficult.
Ah well it is worth it
Kinda hate netbeans for wasting my time today hehe
many thanks,
Gregory Denturck - Brussels Belgium
March 31st, 2009 at 11:51 am
Awesome! Thanks!
July 23rd, 2009 at 1:23 pm
[…] http://wp.uberdose.com/2007/05/07/netbeans-and-utf-8/ […]
December 27th, 2009 at 9:13 pm
thank you for great advise !!!
January 16th, 2010 at 11:52 am
thx man
January 21st, 2010 at 10:20 am
Igazából ez a sor kell, így:
# command line switches:
netbeans_default_options=”-J-Dorg.glassfish.v3ee6.installRoot=\”C:\Program Files\sges-v3\” -J-client -J-Xverify:none -J-Xss2m -J-Xms32m -J-XX:PermSize=32m -J-XX:MaxPermSize=200m -J-Dapple.laf.useScreenMenuBar=true -J-Dsun.java2d.noddraw=true -J-Dfile.encoding=UTF-8″
January 30th, 2010 at 3:31 pm
Thanks so much, it helped me a lot.
February 5th, 2010 at 2:01 pm
Thanks a lot!!!
June 8th, 2010 at 7:16 am
Does not work in 6.8. I have this line in c:\Program Files\Netbeans 6.8\etc\netbeans.conf
netbeans_default_options=”-J-client -J-Xverify:none -J-Xss2m -J-Xms32m -J-XX:PermSize=32m -J-XX:MaxPermSize=200m -J-Dapple.laf.useScreenMenuBar=true -J-Dsun.java2d.noddraw=true -J-Dfile.encoding=UTF-8″
I open Netbeans 6.8. I create a new file. Open in with Editplus to check encoding. It sais ANSI.