1 Reply Latest reply: Mar 30, 2012 10:47 AM by baftos RSS

    How to put Chinese character in jar file by java.util.jar.Manifest?

    332822
      Now I want to develop a simple package tool which can modify some property in manifest.mf of jar files,but the Manifest class's putValue method only can correctly save English character.why?

      And how can I put Chinese character?

      the code is:
      Attributes ab = mf.getMainAttributes();
      ab.putValue("agent-Name", agent);