How to change default encoding in NetBeans 8.0

前端 未结 3 751
梦毁少年i
梦毁少年i 2020-12-01 05:01

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.

<
3条回答
  •  忘掉有多难
    2020-12-01 05:46

    Solution given by Danny

    Navigate to /etc and open the netbeans.conf file.

    Add -J-Dfile.encoding=UTF-8 at the end of the line that starts with netbeans_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)

提交回复
热议问题