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 184591 - [69cat] XML: New "File | Encoding..." Feature for XML Files
Summary: [69cat] XML: New "File | Encoding..." Feature for XML Files
Status: NEW
Alias: None
Product: xml
Classification: Unclassified
Component: Code (show other bugs)
Version: 7.0.1
Hardware: PC Windows Vista
: P3 normal (vote)
Assignee: issues@xml
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-21 08:21 UTC by gliesian
Modified: 2012-12-06 16:01 UTC (History)
1 user (show)

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 gliesian 2010-04-21 08:21:16 UTC
Recommendation to add new "File | Encoding..." feature for XML files.

The menu command will open up an Encoding window that will allow the user to select the desired file encoding in an XML file...

For example, selection of "Unicode UTF-8"" will update the element

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

In addition, this feature can all be added to the New File wizard for XML files.

Note: http://www.w3schools.com/xml/xml_encoding.asp

Thanks.

Case Study: This feature is implemented in Altova XMLSpy
Comment 1 Svata Dedic 2012-12-06 16:01:28 UTC
I understand that the feature might be useful when creating a new file, since the user is working with a dialog anyway, but is the time saved by NOT typing the few chars worth:
* locate the 'change encoding' action, trigger it
* type in the charset name
* confirm

IMHO for an user typing in the editor, it would be faster to add or change the encoding clause manually; possibly a completion items could be provided for both encoding="" setting and currently available encoding names.