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 - Diffrent charsets for diffrent files in a project
Summary: Diffrent charsets for diffrent files in a project
Status: RESOLVED INVALID
Alias: None
Product: projects
Classification: Unclassified
Component: Generic Projects UI (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Jesse Glick
URL:
Keywords: I18N
Depends on:
Blocks:
 
Reported: 2009-02-02 18:01 UTC by szyman
Modified: 2010-07-02 19:23 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 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.