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.
If UTF-8 is used in manifest.mf (eg. Application-Name) and the OS default encoding is different (it sure is in Windows), the manifest in the jar will be "double encoded". As a workaround, I added manifestEncoding="${source.encoding}" attribute to the copylibs tag in build-impl.xml
2+ years have passed. How can I help?
The problem is a bit more difficult as the manifest is processed on more places. 1st) It's copied to tmpfile 2nd) It's optionally extended by Main-Class, Profile, etc depending on presence of main class, JDK8 Profiles ... 3rd) It's inserted into the jar by copylibs or jar task. The output encoding of written manifest in jar, copylibs and manifest task is always UTF-8. So the copy of manifest needs to convert manifest from source.encoding to UTF-8 and all following manifest, jar, copylibs task need manifestEncoding=UTF-8.
Fixed for Ant J2SEProject, WebStart and J2SE Embedded. The same problem is probably in JavaFx project. I will create a new issue and evaluate.
(In reply to Tomas Zezula from comment #3) > Fixed for Ant J2SEProject, WebStart and J2SE Embedded. > The same problem is probably in JavaFx project. > I will create a new issue and evaluate. Thanks. What about javaee.project?
The J2SE Deploy completely ignores user manifest, I've created issue #262429. The JavaFx project ignores user manifest as well, issue #262430. The J2EE is basically a copy of J2SE but maintained by someone else, the patch should be easy to migrate. I will fill an issue for j2ee and add a link here.
The j2ee issue #262431.
Integrated into 'main-silver', will be available in build *201606150002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/472eec6c219c User: Tomas Zezula <tzezula@netbeans.org> Log: #238263:Missing manifestEncoding attribute from copylibs