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.
Summary: | I18N - Cannot save struts-config.xml in UTF-16 encoding | ||
---|---|---|---|
Product: | javaee | Reporter: | Martin Schovanek <mschovanek> |
Component: | Struts | Assignee: | _ potingwu <potingwu> |
Status: | RESOLVED WONTFIX | ||
Severity: | blocker | CC: | jiriprox, kaa, kfrank |
Priority: | P3 | Keywords: | I18N |
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
Martin Schovanek
2007-03-01 18:17:57 UTC
Works fine for me in the 071017 build even when I added some Czech characters to the file. Please reopen with more details. 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. 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 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). moving opened issues from TM <= 6.1 to TM=Dev . NetBeans.org Migration: changing resolution from LATER to WONTFIX |