How to put chinese character in the Manifest file

Hi,
I want to know that how can we put chinese characters in the manifest file. Please suggest a solution.
Regards

[slightly confused stuff removed]Sorry, AmitChalwade123456, I know trolling can be very funny, but you're confusing the sh*t out of newbies with this almost-seems-usefull kind of talk.
Stop that.
And in case you really meant that seriously: Please refrain from giving advice with regard to encoding. What you posted is wrong (to put it mildly).

Similar Messages

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

    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);

    Attribute values can contain any character and it will be UTF-8 encoded when written to the manifest, according to Javadoc.
    What makes you think that this mechanism fails? What do you see instead of the Chinese character? And what tool/editor/program you use to see it? I did not try myself, but according to the Javadoc there should be no problem.

  • Chinese character in the csv file

    Hi all,
    I have code below , I am using OpenCSV API to write data to csv.
    I am using jdk1.4 and NetBean 6.1 and database is DB2.
    The DB2 encoding is UTF-8 , the chinese data is inserted correct to database , but when i tried to retrieve it using
    rs.getString("REGISTER_NAME") , it display "???????" , below is the code
    FileWrite fileWriter = new FileWriter(PARENT_PATH + WRITE_FILE);
    CSVWriter writer = new CSVWriter(fileWriter);
    // feed in your array (or convert your data to an array)
    while (rsVoucherCode.next()) {
    String register_name = rsVoucherCode.getString("REGISTER_NAME");
    System.out.println("register_name :" + register_name);
    String test = new String(register_name.getBytes("UTF-8"), "Big5");
    int register_optin = rsVoucherCode.getInt("REGISTER_OPTIN");
    String[] entries = (test+"#"+String.valueOf(register_optin)).split("#");
    writer.writeNext(entries);
    writer.close();
    Anyone have any ideas or suggestion is much appreciated . Thanks

    yeoweetat wrote:
    I have change the code below to use encoding type to Cp1252 ,
    However the data are not display correctly . of course it won't display correctly. because the Cp1252 encoding is for Japanese fonts, not for Chinese. Please find the suitable encoding type and change accordingly.

  • How to type chinese character in Oracle Report builder 6i?

    Hi,
    Does anyone know how to include the chinese character in the rdf file under Oracle Report Builder 6i?

    Hi,
    please check with this link
    [https://blogs.oracle.com/ankitkaushik/entry/displaying_multilingual_data_i ]
    Hope this link will help you
    Thanks & Regards,
    pallis

  • HOW TO PUT TWO PANNEL IN THE SAME PAGE

    HI ALL
    I NEED TO KNOW HOW TO PUT TWO PANNEL IN THE SAME PAGE TO FULLY UTILIZE FULL PAGE AREA BECAUSE THE PANNEL WIDTH IS TOO SMALL , SO I WANT TO MAKE THE PAPER CONTAIN TO PANNELS VERTICALLY.
    THANK YOU

    So Barb,
    I like to use multiple desktops and move back and forth between then using gestures. At the moment I have 5 open: Chrome, Firefox, Safari, Photoshop CS 6 and a desktop. I use "gestures" to navigate between them:
    Mac Basics: Multi-Touch gestures - Apple Support
    and I use Mission Control (F3) to move the various desktops around in the order I want them.
    Mac Basics: Mission Control - Apple Support
    So say I'm searching for a photo to open in CS 6, I find it on the open desktop then hit select "open" in CS 6 and go to that folder in the select pane.
    Even right now I'm typing this in Safari and "gesturing" back to Chrome where I did the search about multi touch and mission control. I drag copy the URL there  and gestured back here to paste the URL into this text.
    If you did a lot of photo searches, I set professional clients of mine in Chicago up with dual monitors (In this case you'd have an external monitor on extended desktop.). So all you need to do is just glance over at the second monitor slide your cursor over there open stuff up find your photo and go back to Photoshop and open it up.
    Hope this helps.

  • How to put dead notes on the guitar software instrumet??

    How to put dead notes on the guitar software instrumet??

    a dead note is when you mute the chords, like on the smells like teen spirit riff

  • HOW TO PUT MOVIES BACK IN THE CLOUD ON IPAD

    HOW TO PUT MOVIES BACK IN THE CLOUD ON IPAD

    You can't put films in the cloud yourself, whether they will show in the cloud for redownloading depends upon what country that you are in, if the rights-holder allows redownloading, and if the film remains in your country's store. You can delete a film from your iPad via the Edit button at the top right of the film select ion screen in the Videos app or via Settings > General > Usage > Videos (that should also give you an Edit button top right of the screen or you can swipe/drag across a film form right-to-left) - but the film might not then show in the cloud for redownloading. If you haven't already done so you should connect the iPad to your computer's iTunes and do File > Devices > Transfer Purchases so that you can take your own backup copy of your downloads (apps, ibooks etc could also be removed from the store and not be redownloadable in the future).

  • How to send ASCII character to the read buffer?

    how to send ASCII character to the read buffer?

    I assume you mean the serial port read buffer. You can't the only way data gets there is by coming in on the receive line.
    What exactly is it that you are trying to do?
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • How to put a check with the date

    Hi,
    I have created a ztable with 3 fields .
    clientcode(3),
    date,--date geneated
    version--- fileversion
    i need to update this table everytime i execute the data. Every time version shd get incremented when i execute the program.  When i excute the program next day version shd be updated by '1'.
    i wrote the code for version updated i'm not getting the logic how to put a check with the date.
      SELECT *
       FROM zfi_enetflver
       INTO TABLE gt_flver.
      SORT gt_flver DESCENDING.
      CLEAR: gv_dt, v_file.
      CONCATENATE sy-datum6(2) sy-datum4(2) INTO gv_dt.
      READ TABLE gt_flver WITH KEY client_code = gv_clcd.
      IF sy-subrc = 0.
        idx = sy-tabix.
        IF gt_flver-zdate = ' '.
          gt_flver-zdate = sy-datum.
        ENDIF.
        IF gt_flver-version = ' '.
          gt_flver-version = '001'.
          gv_filever = gt_flver-version.
          MODIFY gt_flver INDEX idx TRANSPORTING zdate version.
          MODIFY zfi_enetflver FROM TABLE gt_flver. "TRANSPORTING version.
          CONCATENATE 'E:\' 'ENET\' gv_clcd gv_dt '.' gt_flver-version INTO v_file.
        ELSE.
          gt_flver-version = gt_flver-version + 1.
          gv_filever = gt_flver-version.
          MODIFY gt_flver INDEX idx TRANSPORTING version.
          MODIFY zfi_enetflver FROM TABLE gt_flver .
          CONCATENATE 'E:\' 'ENET\' gv_clcd gv_dt '.' gt_flver-version INTO v_file.
        ENDIF.
      ENDIF.
    clientcode is the key field in ztable do i need to make date field key ??
    please help me with the logic

    You need to implement below logic:
    1. check if field_date = sy-datum. in this case do nothing.
    2. else . move sy-datum to field_date .
    3. modify your internal table with field_date .
    4. populate final table to database table .
    hope you get it.

  • How to modify the Manifest file in the JAR file

    Hi guys,
    i am having a JAR which contains one Manifest file and 10 class files.
    actually i want to do some changes on the manifest file, but by using the ,
    " jar -cmf new_manifest_file jar_fileName all_class_files " option i am able to modify the manifest file by repacking the .class also.
    i want to modify the manifest file without disturbing the existing class files in the JAR file.
    Thanx in advance.............! ! ! !
    bye,
    subbu

    yeah, that is correct.
    my doubt is,
    Is it possible to modify the Manifest file which is inside the jar file, by without disturbing the Class files.
    --Subbu                                                                                                                                                                                                                                                                                                                           

  • How to read Chinese word from a TXT file

    File.OpenText() read a TXT File with  Chinese word in   ;but it not show right.
    exam:The TXT File include :中国
     this.Txt1.Text=ofd.File.OpenText().ReadToEnd();
    but it show :��ʹ�ݼƻ��
    How to solve it

    What encoding does the text file use?  Unlike .NET, Silverlight only supports UTF-8 and UTF-16.  File.OpenText() uses UTF-8 by default.
    If the text file is in some other encoding, you can create your own encoding class (that derives from System.Text.Encoding) that can be used to read the text file.
    class MyEncoding : System.Text.Encoding {
    this.Txt1.Text = (new StreamReader(ofd.File.OpenRead(), new MyEncoding())).ReadToEnd();
    Regards,
    Justin Van Patten
    Program Manager
    Common Language Runtime

  • Chinese character overlap in PDF file

    Hi guyz,
    I am working on the issue on Chinese character overlap in PDF file.
    There is smartform which is being used to generate ePaySlip(Comes in email) in PDF file format which contains Chinese and English both characters.
    Now the issue is that at the bottom of the ePaySlip there is a Remark section which is maintained in Chinese and English both. However, the English sentences are proper withour any problem whereas the same thing in Chinese is showing as distorted/overlapped in few words.
    Can anyone suggest what could be the cause and suggest some solution.
    As when I checked in smartform those characters are hard coded and Chinese characters are shown as ###.
    Please response, I would be really grateful.
    Thanks & Regards,
    Mini

    Hi,
    there a different things to know.
    I produce sapscript forms with cinese and english characters for frontend / backend and archiv printing.
    Please check:
    Editor displays ###: You have to install the chinese language in your e.g. windows-system to display them.
    Script: You have to chose the the font family "CNSONG" (customized for chinese simplified and LATIN).
    Transaction I18N: May you have to set correct subfonts for the unicode areas (Cascading fonts, Standard is Courier).
    You can print in different ways:
    For archiv/PDF: Install the unicode truetype font with chinese characters for the pdf-converter.
    For Frontend: Use the Frontendprinter SAPWIN or SAPWIN*CF (Cascading Font) to send it to the gui (note: SAPLPD does not support it, use the newer technology.....)
    Backend printing: POSTSCRIPT is not yet implemented :-((
    PLease note: What you see in spool / print preview is a simulation of the possible print, but backend print is not frontend preview!!!!
    Regards,
    Christian

  • Problem of  loading the Manifest file

    Hello Friends,
    I have developed a project in J2SE.I am creating a JAR file of it but I am facing a problem in doing that. My Problem is The Manifest File I have created is not loading by the JVM. I have created the Manifest file which contains the following code:
    Main-Class: secl/Login
    and save it with the name Login.mf in C drive where my project folder is also exists. Then run the following command:
    C:\>jar cvfm secl.jar Login.mf secl\*.class
    then, following error is shown:
    java.io.FileNotFoundException: Login.mf (The system cannot find the file specified)
    Then, I run the following command:
    C:\>reg query HKCR\jarfile\shell\open\command
    Then, I received the following msg:
    ! REG.EXE VERSION 3.0
    HKEY_CLASSES_ROOT\jarfile\shell\open\command
    <NO NAME> REG_SZ "C:\Program Files\Java\j2re1.4.1_03\bin\javaw.exe" -jar "%1" %*
    I think this msg says my files association is wrong. What is the meaning of this msg? My JAR file is created but Manifest file is not loading and main class is not read.Please help me about this.
    I am a self learner and there is no body here to help me.

    Hello Friends!
    I have successfully created the JAR file of my project with the Manifest File including my Main Class. I had just gave the following command:
    C:\>jar cfm secl.jar Manifest.txt secl/*.class
    and my jar file is created. But there is a problem, when I execute this jar file at command prompt by the following command:
    C:\>java -jar secl.jar
    the following error msg is shown:
    Exception in thread "main" java.lang.NoClassDefFoundError: secl/Login (wrong name: Login)
    And also when I execute it by double clicking it then the following error msg dialog box is shown:
    Could not find the main class.Program will exit!
    As you suggested, I gave the main class path in Manifest file as:
    Main Class: secl.Login
    but the same problem is still occurring.
    How can I solve this problem? Please help me.

  • What's wrong with the manifest file????

    when i tried to jar using this command:
    java -jar aaa.jar
    i have an error saying:
    Failed to load Main-Class manifest attribute from aaa.jar
    so i tried editing my manifest file but no matter wad changes i make to the manifest file the same error occur so desperately, i remove the manifest file and the same error occur! can someone help me???

    If you want to execute a jar file using the -jar option, then you must put a Main-Class entry into the mainifest of the jar. The Main-Class must be the fully qualified name of the main class. The main class must be added to the jar correctly. The manifest must end with a blank line.
    If you still have problems, you need to post more information: the contents of the manifest, the fully qualified name of the main class, the command you are using to create the jar.
    You can also execute jar without using the -jar option. You do this by adding the jar to the classpath and specifying the main class as the application class to run. For example java -classpath aaa.jar MainClass

  • Accessing the manifest file.

    I would like to be able to retrieve the version number from the manifest file from within my application. I know that I was able to do that when I was working on an ME project, but can't seem to find a method for it in regular Java. Any thoughts?

    Hmm, doesn't look like it. It cannot be called
    statically. And all the constructors for JarFile
    appear to need the name of the jar file. This is a
    bit bewildering, since it was a common routine in ME.From what you are saying, applications in ME are single jar resources. Not so in SE. How would the underlying system know which jar you want to look at?

Maybe you are looking for

  • I Tunes downloads onto my PC but won't open. Can someone assist  with this dilema?

    I have downloaded I Tunes to my PC numerous times. The download goes fine. When I hit the icon to open I Tunes up, nothing happens. I have removed I Tunes from my system and reloaded, and still it won't open. Can anyone help with this dilema?

  • Pre populate an item with source type="Database Column"

    Hello gurus, How can I pre populate an item with source used "Always, replacing any..." and source type="Database Column"? I have a form that creates/updates rows in a table and when creating a new row I want to populate some of the fields based on s

  • GET Method on JSF

    ADFBC/JSF (10.1.3.2) What should I do on the Calling Page to genete a URL with paramaters like this: http://localhost:8988/oramag/faces/ViewEmployee.jspx?id=7934 Say for example Employee id needs to be passed as a parameter when the user clicks on th

  • Where can I find the date of the last time I synced my iPhone4?

    My iphone has some water damage and has not yet been able to display anything (though the phone itself still works).  I would like to find out from iTunes when I last synced the iPhone -- is there a place I can go to get this info? Thanks!

  • Error messages using software

    I am using "Mavis Beacon Typing Tutor" and get this error message when attempting to type on screen: Assertion ((mdwLesson_starttime != mTIMEUNKNOWN)) failed in "Clsbase.cpp", line 1009 Am I missing an update or is this a question for the software ma