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: | unmappable character for encoding UTF-8 | ||
---|---|---|---|
Product: | webservices | Reporter: | catjav |
Component: | JAX-WS | Assignee: | Denis Anisimov <ads> |
Status: | RESOLVED DUPLICATE | ||
Severity: | normal | ||
Priority: | P2 | ||
Version: | 7.2 | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: | IDE log |
Description
catjav
2012-10-04 12:08:09 UTC
Created attachment 125379 [details]
IDE log
It looks like duplicate of the issue #216526 and #208735. Recent JAXB version generates source code using system default encoding. NB uses its own encoding options for editor and javac. Issue appears where system encoding differs from NB encoding. Please provide your system encoding . As I understand your project encoding setting is UTF-8. Is it correct ? My project is in UTF-8. My system encoding ??? In System.getProperties, I see 'file.encoding', value : 'UTF-8'. Is it what you ask ? Thank you for your answer. (In reply to comment #3) > My project is in UTF-8. > My system encoding ??? In System.getProperties, I see 'file.encoding', value : > 'UTF-8'. Is it what you ask ? No. Please open Menu : Help->About. There is a text area with required NB environment information. F.e. there is a "System:" field . In my case it is "Windows 7 version 6.1 running on amd64; Cp1251; en_US (nb)". What is yours ? Here is my info : System: Windows XP version 5.1 running on x86; Cp1252; fr_BE (nb) (In reply to comment #5) > Here is my info : System: Windows XP version 5.1 running on x86; Cp1252; fr_BE > (nb) It means it is really the duplicate of the issue issue #216526 . The workaround is : open your project settings and change Encoding option ( Sources category ) from UTF-8 to windows-1252 or ISO-8859-1. *** This bug has been marked as a duplicate of bug 216526 *** Ok for the workaround.But we must use UTF8 for our projects. So, have you an idea if the integration of JAXB will be adapted in the next version of Netbeans ? (In reply to comment #7) > Ok for the workaround.But we must use UTF8 for our projects. > So, have you an idea if the integration of JAXB will be adapted in the next > version of Netbeans ? You may use encoding setting for NB at the start time. Find etc/netbeans.conf file in your NB distribution and add -J-Dfile.encoding=UTF8 to the netbeans_default_options. As a result overall NB JVM will be using UTF8 as a system encoding. This encoding will be used by JAX-WS ant tasks ( and JAXB impl ) as a consequence. |