Bug 157800 - Diffrent charsets for diffrent files in a project
Diffrent charsets for diffrent files in a project
Status: RESOLVED INVALID
Product: projects
Classification: Unclassified
Component: Generic Projects UI
6.x
All All
: P2 (vote)
: TBD
Assigned To: Jesse Glick
issues@projects
: I18N
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-02-02 18:01 UTC by szyman
Modified: 2010-07-02 19:23 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.


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