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

Summary: Default encoding in Editor
Product: editor Reporter: MegaProgMan
Component: OptionsAssignee: Milutin Kristofic <mkristofic>
Status: NEW ---    
Severity: normal CC: MegaProgMan
Priority: P3    
Version: 8.1   
Hardware: PC   
OS: Windows 7   
Issue Type: DEFECT Exception Reporter:

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-Dapple.awt.graphics.UseQuartz=true -J-Dsun.java2d.noddraw=true -J-Dsun.java2d.dpiaware=true -J-Dsun.zip.disableMemoryMapping=true -J-Dfile.encoding=windows-1252"