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 157800

Summary: Diffrent charsets for diffrent files in a project
Product: projects Reporter: szyman <szyman>
Component: Generic Projects UIAssignee: Jesse Glick <jglick>
Status: RESOLVED INVALID    
Severity: blocker Keywords: I18N
Priority: P2    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

Description szyman 2009-02-02 18:01:03 UTC
It would be very helpful if there was a possibility to change charset for some files in a project.
I have a PHP project in ISO-8859-2 with some XML files in UTF-8 in it. Whenever I edit those files they are convertet 
to ISO-8859-2. Changing all files to the same charset is not an option. Right now I'm using a diffrent editor for those 
files. This way is very unconvinient.
Comment 1 Jesse Glick 2010-07-02 19:23:29 UTC
It is intentional that a given project has only one encoding for file types which do not internally specify their own encodings. However XML files do normally specify an encoding internally:

<?xml version="1.0" encoding="UTF-8"?>

With an explicit encoding like this, the NB editor should always load and save the file in that encoding, without paying any attention to the project's settings.