This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 258835 - Default encoding in Editor
Summary: Default encoding in Editor
Status: NEW
Alias: None
Product: editor
Classification: Unclassified
Component: Options (show other bugs)
Version: 8.1
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Milutin Kristofic
Depends on:
Reported: 2016-04-14 16:28 UTC by MegaProgMan
Modified: 2016-04-14 16:30 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description MegaProgMan 2016-04-14 16:28:20 UTC
I added "-J-Dfile.encoding=window-1252" at the end of « netbeans_default_options » in « Netbeans_8_1\etc\netbeans.conf » file but there's no effect when I create a new project with NetBeans; the encoding still UTF-8 in project properties.

Is i a bug or not? 

What real effect have this option (-J-Dfile.encoding) in NetBeans?

What I have to do to create new project with windows-1251 encoding by default?

The exact line from the netbeans.conf file is:

netbeans_default_options="-J-client -J-Xss2m -J-Xms32m -J-Dapple.laf.useScreenMenuBar=true -J-Dsun.java2d.noddraw=true -J-Dsun.java2d.dpiaware=true -J-Dfile.encoding=windows-1252"