0 Replies Latest reply: Jan 15, 2010 8:41 PM by 843851 RSS

    Toolkit build problem with different encoding

      I would like to know whether the toolkit could build manifest.mf into Jar package as the encoding as UTF-8.
      The jar command (%JAR% cmf MANIFEST.MF %DEMO%.jar -C ..\classes .) in the build.bat is not valid when the manifest.mf is encoded as UTF-8. The error information:
      java.io.IOException: invalid header field name: ???MIDlet-1
      at java.util.jar.Attributes.read(Attributes.java:416)
      at java.util.jar.Manifest.read(Manifest.java:182)
      at java.util.jar.Manifest.<init>(Manifest.java:52)
      at sun.tools.jar.Main.run(Main.java:132)
      at sun.tools.jar.Main.main(Main.java:1022)
      If the encoding method is ANSI,it performances good.How can I build that with the UTF-8?

      Appreciate a lot if someone could help me.