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 96981 - I18N - Cannot save struts-config.xml in UTF-16 encoding
Summary: I18N - Cannot save struts-config.xml in UTF-16 encoding
Status: RESOLVED WONTFIX
Alias: None
Product: javaee
Classification: Unclassified
Component: Struts (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: _ potingwu
URL:
Keywords: I18N
Depends on:
Blocks:
 
Reported: 2007-03-01 18:17 UTC by Martin Schovanek
Modified: 2009-11-02 11:17 UTC (History)
3 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 Martin Schovanek 2007-03-01 18:17:57 UTC
[#20070301-1027, jdk1.5.0]

to reproduce:
-------------
1) set the encoding of struts-config.xml to UTF-16
2) save it
ERROR: 'Invalid XML file. There were errors found while validating XML document.
Save anyway? ' dialog appears. But the file is valid.

faces-config.xml does the same.
Comment 1 Andrei Badea 2007-10-17 15:49:36 UTC
Works fine for me in the 071017 build even when I added some Czech characters to the file. Please reopen with more details.
Comment 2 Martin Schovanek 2007-10-17 16:32:35 UTC
to reproduce:
1) change 1st line of the file to:
<?xml version='1.0' encoding='UTF-16' ?>

ERROR: 'Invalid XML file. There were errors found while validating XML document.
Save anyway? ' dialog appears.
Comment 3 Ken Frank 2007-10-17 16:50:37 UTC
I am guessing this is more general than just with struts
since I think the xml saving and parsing is done by common
code that calls same xml processor ?

if so, please let me know and can file a more general issue.

I think now the encoding of the xml file is used vs the encoding
of the project, that is, the encoding in the file takes precendence;
whether that is realted to this I don't know.

ken.frank@sun.com
Comment 4 Andrei Badea 2007-10-17 17:12:49 UTC
Sorry, my fault, I had tried to evaluated on JDK 1.6, where it works fine. But I can reproduce with JDK 1.5.

This doesn't seem to be reproducible for a "plain" XML file. The file is saved fine in UTF-16 LE (well, at least Czech
characters are saved just fine).
Comment 5 Jiri Prox 2008-04-11 01:18:33 UTC
moving opened issues from TM <= 6.1 to TM=Dev
Comment 6 _ potingwu 2008-11-20 23:30:45 UTC
.
Comment 7 Quality Engineering 2009-11-02 11:17:28 UTC
NetBeans.org Migration: changing resolution from LATER to WONTFIX