Please use the Apache issue tracking system for new NetBeans issues ( !!
Bug 109717 - I18N - Refresh sources encoding
I18N - Refresh sources encoding
Product: editor
Classification: Unclassified
Component: -- Other --
All Linux
: P3 (vote)
Assigned To: Milutin Kristofic
: I18N
Depends on:
  Show dependency treegraph
Reported: 2007-07-14 10:45 UTC by xlinuks
Modified: 2016-07-07 07:26 UTC (History)
2 users (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description xlinuks 2007-07-14 10:45:30 UTC
-[project name] -> [right click] -> "Properties" -> "Sources" -> "Encoding" (on the right bottom):
After changing the encoding and pressing "OK" the IDE doesn't refresh existing opened "sources" according to the newly
specified encoding - it only applies the new encoding to the "sources" that will be opened in the future. So one has to
close the opened "sources" (java source files) and and open them again. Would be good for the IDE to do this for the
user/programmer (this option is important for projects working with "non-english" encodings, such as russian
(windows-1251) and chinese)

Product Version: NetBeans IDE 6.0 M10 (build 200706281431) Java: 1.6.0_02-ea; Java HotSpot(TM) Client VM 1.6.0_02-ea-b02
System: Linux version 2.6.20-16-generic running on i386 (Ubuntu Feisty Fawn); UTF-8; en_US (nb) Userdir:
Comment 1 Marian Petras 2007-07-16 14:05:28 UTC
Reassigned to "editor".
Comment 2 rickqin 2007-07-17 11:35:34 UTC
yes, and accroding to description of NB6.0_M10 help document(F1), you can not find "Java Source".

The help document described as below:
1. From the main window, choose Tools > Options and click Advanced Options.
2. In the left pane, expand the Editing node and select Java Sources.
3. Set properties as desired in the right pane of the window.

There is no "Java Sources" item in the Editing node.
Comment 3 Ken Frank 2007-07-20 04:46:57 UTC
I think the description of the issue is how the new project encoding feature is supposed to work;
that all files created after the user changes the encoding will be viewed as that encoding but files
changed before that - the user would need to change them so they are correct for the encoding.

The thought is I think that the java or other compiler can use one encoding - so that user
would need all files to be in same encoding.

Also, the previously created files will not be automatically changed to the new encoding; there is not
autodetection done.

to filer - the default encoding for nb6 projects is utf-8 - would that be helpful in that it might
handle most characters that would be working with - even if locales were changed and reran ide ?
Comment 4 Martin Balin 2016-07-07 07:26:21 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo