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 109717 - I18N - Refresh sources encoding
Summary: I18N - Refresh sources encoding
Status: RESOLVED WONTFIX
Alias: None
Product: editor
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 6.x
Hardware: All Linux
: P3 blocker (vote)
Assignee: Milutin Kristofic
URL:
Keywords: I18N
Depends on:
Blocks:
 
Reported: 2007-07-14 10:45 UTC by xlinuks
Modified: 2016-07-07 07:26 UTC (History)
2 users (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

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:
/home/brian/.netbeans/6.0m10
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 ?

ken.frank@sun.com
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