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 168517

Summary: Document character encoding settings is not flexible enough
Product: java Reporter: jack_2008 <jack_2008>
Component: I18NAssignee: issues@java <issues>
Status: RESOLVED DUPLICATE    
Severity: blocker CC: pribyl
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description jack_2008 2009-07-14 02:19:39 UTC
对js文件的编码不能正确识别.
在此提个建议.希望能针对某个文件进行编码的转换.如gbk与utf-8. 而不是针对整个系统进行编码设置.
Comment 1 Alexei Mokeev 2009-07-30 09:19:39 UTC
I updated the subject line using automatic translation. And here the description's translation:
--
Js files to not be able to correctly identify the encoding.
In this suggestion. Want to encode a file for conversion. Gbk with as utf-8. And not for the entire system encoding
settings.
--
jack_2008, please describe the current behavior and the desired behavior. From the the above description it's hard to
detect what's wrong.
Comment 2 roti 2009-07-31 09:53:57 UTC
I have the same problem:
I have a project with utf8 encoding. Having all the file with utf8. Despite of this, the js files opened with the 
system default encdoding. (winxp, hungary: latin2)

As I described in http://www.netbeans.org/issues/show_bug.cgi?id=114123

in the projects, the default handling of file encoding should stay, but an option is needed in project properties:
a checkbox in Project/Properties/Sources/Encoding "use this encoding for all project files" to enable that all the 
files in the project be handled with the project's encoding.
ed checkbox)
Comment 3 pribyl 2009-10-06 15:25:34 UTC
Marking as duplicate of issue 114123, so it is "under one roof" and easier to track.

*** This issue has been marked as a duplicate of 114123 ***