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.
Product Version: NetBeans IDE 6.1 Beta (Build 200803041230) Java: 1.6.0_03; Java HotSpot(TM) Client VM 1.6.0_03-b05 System: Windows XP version 5.1 running on x86; MS932; ja_JP Steps: 1. Creat java app then change its encoding to windows-31j 2. Create WebApp with Spring Web MVC 2.5 (now it has win-31j project encoding) 3. Examine all xml files. All of them contain encoding="UTF-8". I'm running in the Japan locale, using a pseudo localized Netbeans. Checked Apps: plain web app, web app with struts, checked files: xml file, xml schema, dtd entity, xsl stylesheet. Encoding looks ok. It was taken from project encoding. Its value was win-31j
Initial fix (more a workaround, actually) in 697e90aa0048. Still need to fix properly, which require a couple of other issues to be fixed in non-Spring areas first.
will fix for this apply to other project/file/template types ? we can test about those also or, if additional issues needed for those, can file them. ken.frank@sun.com
The fix will only manifest in the Spring area. Other templates might find the project.encoding variable introduced in issue 129685 useful -- for example the XML Document template.
Fixed by using the project.encoding variable introduced in issue 129685. 025ce891b66c
verified in trunk 0408 xml files now use project encoding except web.xml and sun-web.xml (they have UTF-8) Please reopen if this is not expected behavior.