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.
Currently, the Text tab in a file's Properties window has a blank text field for Encoding property. It is desireable to replace this text field with a combo box populated with all, or most commonly used (ISO-8859-1, UTF8, etc.), the file encoding options supported by Java, for it could be daunting or error-prone for users to manually enter the encodings -- typo errors can happen and result in incorrect file saving. (Does the IDE currently have a mechanism to detect invalid values entered for Encoding?) Possible values for the combo box can be found at http://java.sun.com/j2se/1.4/docs/guide/intl/encoding.doc.h tml. At least, the Basic Encoding Set, in particular, should be used for the combo box.
Agreed. This week I will commit an enhancement to the Integer/int property editors which will allow key/value pairs to be supplied. This would be a good usage of it. See issue 20736 for details. I do not know off the top of my head who provides the Encoding property (and I know it is used differently in the new Projects branch, in at least one dialog, so it will need to be handled for both cases). Maybe the Java module? As Encoding is a string value, there's nothing that can be done directly in core/property editors to handle this case - the code that is providing the property needs to either provide a custom property editor or provide appropriate hints to the existing property editor - or create some "Encoding" class so a specific property editor may be assigned. Assigning back to issues@core for appropriate resolution.
assigning to owner of subcomponent
Passing property editor issues to new owner, Jirka
As of today, this issue still has not been resolved.
core->java
*** Issue 51670 has been marked as a duplicate of this issue. ***
*** Issue 62754 has been marked as a duplicate of this issue. ***
I think this is a dup of bug 42638. Let's cleanup these encoding issues.
Tomas is file encoding guru :)
The encoding model has dramatically changed in NB 6.0, this issue is no more valid.