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 235171 - charset encoding setting for single files
Summary: charset encoding setting for single files
Status: RESOLVED WONTFIX
Alias: None
Product: projects
Classification: Unclassified
Component: Generic Infrastructure (show other bugs)
Version: 7.4
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Tomas Stupka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-28 13:02 UTC by maxym
Modified: 2016-07-07 08:38 UTC (History)
0 users

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 maxym 2013-08-28 13:02:13 UTC
Please add possibility to set character set for single files. It should override project charset setting.

This request born as result of discussion in following ticket:
https://netbeans.org/bugzilla/show_bug.cgi?id=234945

There are cases while single project contains files with different charset encodings. 
Current state of NB makes impossible to work with such files. There is also logic implemented which tries to recognize proper encoding by content. In worst cases it may end up with issues like in listed ticket, while NB is not able to read file saved by it self.

At the end, the same subject is brought up: to make possible to setup charset for each file separately. It would be usefull for every project which works with different encodings. It may be XML files, template files or so. At least it me who suffer from lack of this feature from time to time.
Such setting might be available in file properties window.

with regards

PS. Sorry, I can't find product/component suitable for files/encoding support. Please move if needed.
Comment 1 Milos Kleint 2013-09-03 06:47:33 UTC
two challenges here:
1. where to store the value for encoding? should it be shareable across users/computers?
2. properties for various filetypes are probably not easily extendable. new api might be necessary
Comment 2 maxym 2013-09-03 19:46:23 UTC
#1 
It's not about how to display file, but how to load it. Personal or system preferences has nothing to do here. It means that file charset should be stored in project. Which knowledge about original charset encoding, it may be converted to one used in particular OS while displaying document.
Comment 3 Martin Balin 2016-07-07 08:38:54 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