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 129454 - I18N - WebApp with Spring Web MVC doesn't use project encoding for xml files
Summary: I18N - WebApp with Spring Web MVC doesn't use project encoding for xml files
Status: VERIFIED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: Spring (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Andrei Badea
URL:
Keywords: I18N
Depends on: 129665 129685 129919
Blocks:
  Show dependency tree
 
Reported: 2008-03-06 18:28 UTC by kaa
Modified: 2008-04-10 18:04 UTC (History)
1 user (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 kaa 2008-03-06 18:28:38 UTC
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
Comment 1 Andrei Badea 2008-03-11 11:38:42 UTC
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.
Comment 2 Ken Frank 2008-03-25 02:05:48 UTC
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
Comment 3 Andrei Badea 2008-03-26 21:57:41 UTC
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.
Comment 4 Andrei Badea 2008-03-27 00:37:01 UTC
Fixed by using the project.encoding variable introduced in issue 129685.

025ce891b66c
Comment 5 kaa 2008-04-10 18:04:36 UTC
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.