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: | Encoding in manifest files is always utf-8 (or utf-16?) | ||
---|---|---|---|
Product: | apisupport | Reporter: | arittner <arittner> |
Component: | Maven | Assignee: | Jesse Glick <jglick> |
Status: | RESOLVED WORKSFORME | ||
Severity: | normal | CC: | jglick |
Priority: | P3 | ||
Version: | 6.x | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
arittner
2010-04-14 11:52:31 UTC
The manifest specification defines the encoding to be UTF-8. Hi Jesse, so we have a bug in the plugin manager? The displayed description shows garbled glyphs for the German umlaut a (ä). thank you for the clarification, I'll file a new bug. br, josh. (In reply to comment #2) > so we have a bug in the plugin manager? I don't know, depends on whether the manifest is in fact in UTF-8 or not. If yes, then the Plugin Manager is at fault; if no, then the nbm packaging plugin for Maven is at fault. (I am assuming your POM declares the actual encoding it uses, whatever that may be.) I can't see any effect by different encoding settings. One is the xml-encoding (at top of the pom.xml, UTF-8) and one is the project encoding settings (for source code files, a maven specific parameter and in my project: ANSI). But the manifest text is always encoded as UTF-XX (IMHO UTF-16, unabänderbare -> 4 Bytes for ä). Specification: http://java.sun.com/j2se/1.3/docs/guide/jar/jar.html#Name-Value%20pairs%20and%20Sections You are right, it should be UTF-8. And "unabänderbare" to UTF-8 is "unabänderbare" (here is an online en/decoder for utf-8: http://coderstoolbox.net/string/), not "unabänderbare". And it's not a wrong character in the pom.xml, I use ä Is it ok to reopen the issue? br, josh. Would need a complete sample project to test with. In my test, using maven-nbm-plugin 3.3, including ä in the POM renders it invalid: XML validation started. Checking file:/tmp/test184135/pom.xml... The entity "auml" was referenced, but not declared. [11] XML validation finished. When I use ä instead, the correct character with umlaut is displayed in MANIFEST.MF and Info.xml, and rendered correctly in Plugin Manager. This on Ubuntu. |