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 114683 - I18N - xml templates need to seed encoding with project encoding
Summary: I18N - xml templates need to seed encoding with project encoding
Status: VERIFIED FIXED
Alias: None
Product: xml
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: Sun All
: P2 blocker (vote)
Assignee: Samaresh Panda
URL:
Keywords: I18N
Depends on:
Blocks:
 
Reported: 2007-09-04 19:47 UTC by Ken Frank
Modified: 2007-11-29 16:57 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ken Frank 2007-09-04 19:47:20 UTC
see 97872 for issue about xml files and project encoding/feq.
making it issue vs rfe to be consistent with other such feq kind of issues.
(107911 was really about this but it became a dup of 97872)

For similar issues about jsp and html files, part of the solution was to seed the encoding
value of those files created by ide, with that of the project encoding vs utf-8, as is done now.

Sam can give more information on this.

I did have a concern and questions about this:

1. does this seeding of xml files apply only to the ones listed under
xml in template mgr window - ie
xml doc, schema, dtd, wsdl doc, etc etc

but not to the ones under soa like bpel process, wsdl from dbase, xslt service ?

and not  to the xml files
created as part of web and ejb apps like web.xml, sun-config.xml and many others ?

==> reason am asking is, if those other functionalities create their xml files from the xml templates, those will soon
be seeded with project encoding,
vs utf-8, then we should let those folks know to see if it might be a problem.

==> and if not affect soa xml based files, should sep issue be filed on those ?
Comment 1 Samaresh Panda 2007-09-13 21:47:16 UTC
I'll make the change only for XML, XML Schemas and DTD files. You should file separate issues for WSDL, BPEL etc.
Comment 2 Samaresh Panda 2007-09-13 23:38:00 UTC
Fix integrated:
/cvs/xml/core/src/org/netbeans/modules/xml/api/XmlFileEncodingQueryImpl.java
new revision: 1.5; previous revision: 1.4
/cvs/xml/core/src/org/netbeans/modules/xml/api/EncodingUtil.java
new revision: 1.3; previous revision: 1.2
/cvs/xml/core/src/org/netbeans/modules/xml/core/resources/templates/emptyDTD.dtd.template
new revision: 1.5; previous revision: 1.4
/cvs/xml/core/src/org/netbeans/modules/xml/core/resources/templates/emptyXML.xml.template
new revision: 1.2; previous revision: 1.1
/cvs/xml/core/src/org/netbeans/modules/xml/core/wizard/Bundle.properties
new revision: 1.14; previous revision: 1.13
/cvs/xml/core/src/org/netbeans/modules/xml/core/wizard/XMLWizardIterator.java
new revision: 1.17; previous revision: 1.16
/cvs/xml/core/src/org/netbeans/modules/xml/core/wizard/DTDWizardIterator.java
initial revision: 1.1
/cvs/xml/core/test/unit/src/org/netbeans/modules/xml/api/EncodingUtilTest.java
initial revision: 1.1
/cvs/xml/core/src/org/netbeans/modules/xml/core/resources/mf-layer.xml
new revision: 1.62; previous revision: 1.61

/cvs/xml/schema/src/org/netbeans/modules/xml/schema/wizard/SampleSchemaIterator.java
new revision: 1.3; previous revision: 1.2
/cvs/xml/schema/src/org/netbeans/modules/xml/schema/wizard/SchemaWizardIterator.java
new revision: 1.2; previous revision: 1.1
/cvs/xml/schema/src/org/netbeans/modules/xml/schema/wizard/AbstractSchemaWizardIterator.java
initial revision: 1.1
/cvs/xml/schema/src/org/netbeans/modules/xml/schema/wizard/templates/XMLSchema.xml
new revision: 1.2; previous revision: 1.1
/cvs/xml/schema/src/org/netbeans/modules/xml/schema/wizard/templates/LoanApplication.xsd
new revision: 1.2; previous revision: 1.1
/cvs/xml/schema/src/org/netbeans/modules/xml/schema/wizard/templates/PurchaseOrder.xsd
new revision: 1.2; previous revision: 1.1
Comment 3 kaa 2007-09-24 19:26:58 UTC
verified: build 0920
xml, jsp, html files are seeded ok with project encoding. Tested with WebApp: utf-8/win-31j/x-euc-jp
Comment 4 kaa 2007-11-29 16:57:11 UTC
re-checked with build 1123, Xp.ja_JP, win-31j