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.
Build: NetBeans IDE Dev (Build 20121002-931556ce6d80) VM: Java HotSpot(TM) Client VM, 23.3-b01, Java(TM) SE Runtime Environment, 1.7.0_07-b10 OS: Linux User Comments: GUEST: I had a lot of files opened. The exception ocurred when I want to save a XML file. jglick: (c) character in an XML file with no explicit encoding; could not save file. In a Maven project set to use UTF-8 source encoding. After adding <?xml version="1.0" encoding="UTF-8"?> to top of file I was able to save it with the © char. Stacktrace: java.lang.IllegalStateException: Current state = FLUSHED, new state = CODING_END at java.nio.charset.CharsetEncoder.throwIllegalStateException(CharsetEncoder.java:968) at java.nio.charset.CharsetEncoder.encode(CharsetEncoder.java:554) at org.netbeans.api.queries.FileEncodingQuery$ProxyCharset$ProxyEncoder.implFlush(FileEncodingQuery.java:432) at java.nio.charset.CharsetEncoder.flush(CharsetEncoder.java:650) at java.nio.charset.CharsetEncoder.encode(CharsetEncoder.java:786) at java.nio.charset.CharsetEncoder.canEncode(CharsetEncoder.java:892)
Created attachment 125325 [details] stacktrace
Created attachment 126033 [details] stacktrace
This bug already has 5 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=192910
*** Bug 219889 has been marked as a duplicate of this bug. ***
This bug already has 100 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=192910
Tondo, please evaluate.
I am not able to reproduce in 7.3 fcs candidate build (and I don't see any report newer that 7.3 Beta); when I try to save xml file (created as a non project file via favorites) containing (c) char, information dialog appears with possibility to fix this automatically by adding encoding='UTF-8' into xml declaration. Svato, this fixed in 7.3 timeframe, right?
Confirmed that there were fixes in this area that most likely fixed this (cannot reproduce in 7.3) - marking as FIXED.
... correction : worksforme