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.
Build070319 JDK: 1.6.0 Platform: Windows Japanese to reproduce: - select menu File > New Project - select C/C++ Development - select C/C++ Application in the Projects pane - Click Next - Accept all the defaults, and click finish Exception is thrown, and project is not created successfully. The created Application_1/nbproject/configurations.xml includes native encoded characters, but the declaration in XML is: <?xml version="1.0" encoding="UTF-8"?> It's an encoding mismatch. Because we have various locales in users' environment, it's difficult to support all the encoding values. So I would like to propose IDE always generate UTF-8 characters and the declaration is always "encoding="UTF-8", so then all users' environment can be supported with UTF-8 encoding. Please fix this issue by 5.5.1 release because it's serious for the localized version.
Created attachment 39684 [details] project file. Declaration is UTF-8, but file contains Shift_JIS character
Created attachment 39685 [details] IDE log file when an exception was thrown
fixed - create writer with right encoding. CVS log: Checking in XMLDocWriter.java; /shared/data/ccvs/repository/cnd/core/src/org/netbeans/modules/cnd/api/xml/XMLDocWriter.java,v <-- XMLDocWriter.java new revision: 1.1.2.4; previous revision: 1.1.2.3 done Checking in XMLEncoderStream.java; /shared/data/ccvs/repository/cnd/core/src/org/netbeans/modules/cnd/api/xml/XMLEncoderStream.java,v <-- XMLEncoderStream.java new revision: 1.1.2.2; previous revision: 1.1.2.1 done
Verified in 5.5.1 (Build070412). Thank you very much for your fixing. I've confirmed, UTF-8 encoded XML is created Windows platform. For others, it works fine as follows: Solaris (ja) : EUC-JP Solaris (ja_JP.UTF-8): UTF-8 Solaris (ja_JP.PCK) : UTF-8 RHEL4 : UTF-8 Windows : UTF-8 Again, thank you.