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.
UTF-8, because it is "universal" should be defined a the default encoding for the source files. See http://www.netbeans.org/servlets/ReadMsg? msgId=738966&listName=nbusers for a more detailed rationale. p.b.
May be closed as WONTFIX. I don't know if this is the right default. Would be annoying to people using other apps which aren't set to use UTF-8 as the default, esp. in Asian locales I think. Needs wider discussion and planning.
OK, but see : http://www.netbeans.org/issues/show_bug.cgi?id=42437 As a minimum, it would be nice if the IDE reported that it is working with the *default* encoding (i.e. the file.encoding system property of the running JVM). On a related topic, having the opportunity to set these system properties in a dedicated options-windows TreeItem would be nice).
would be great if there was some kind of unified approach to allowing user to set encoding or some defaults for it; know its hard due to so many file types and also specs rules like for jsp and xml ken.frank@sun.com 06/08/2004
UTF-8 is bad default. The only correct default encoding is the one provided by the OS/JVM (file.encoding), as it is the only one consistent across other applications on the machine. E.g. if I save my sources using UTF-8 and then running javac from command line on my cs_CZ Linux, it would garble all the czech texts in my sources. Of course I can use cs_CZ.UTF-8 locale on my Linux, and in that case, NetBeans would correctly use UFT-8 as the file encoding. Anyway, issue 42437 is valid.