Issue
I'm wondering if I can change default encoding in NetBeans 8.0... I searched a lot but I haven't find a way how to change the encoding in this version of NetBeans.
I have this tag in my html document:
<meta charset="utf-8">
BUT! As you can see on attached image, NetBeans notice is warning me about an encoding problem.
Internal encoding declaration "utf-8" disagrees with the actual encoding of the document ("windows-1250").
I created index.html by "new file" function in NetBeans. There is UTF-8 encoding in project properties, so I think it should be UTF-8. I really don't know where that 'windows-1250' came from!!
Where I can find some option to change default encoding or even current file encoding in NetBeans 8.0?
Solution
Navigate to
<Netbeans installation directory>/etc
and open thenetbeans.conf
file.Add
-J-Dfile.encoding=UTF-8
at the end of the line that starts withnetbeans_default_options
(make sure to include the leading space).Restart Netbeans and it should be in UTF-8
To verify go to
help -> about
and check System:Windows Vista version 6.0 running on x86; UTF-8; nl_NL (nb)
Answered By - Rex Wagenius
Answer Checked By - Senaida (JavaFixing Volunteer)