Chinese characters reading and printing from

I have an xml file with one element
< item name="Notification" value="some chinese characters like & # \u5927 ;" />
Now I want to read that from the xml file and print that
so what I do is
String value = config.getProperty(Config.PREFACE);
    String value1 = new String(value.getBytes("Big5"), "Big5");
    System.out.println("testing 26 " + value1);But at the end of the day I am still getting question marks.
meaning that the out put still being
some chinese characters like ?
Any ideas? This thing is driving me nuts..............

Hi,
I was working on it Chineese and arabic but abandoned it due to time constraints.
I think u need to install chineese fonts on u'r system if u dont have one.
I dont think it comes default with java. Also u may require to edit the font.properties file and specify which font to use for displaying the range of unicode characters.

Similar Messages

  • Reading and printing from a file

    I have a method that reads temperatures from a data file and prints them to the monitor. I use a while loop to read each line of the file, but for some reason it doesnt skip the loop when readLine returns null. My question is how do i get the method to stop reading before it returns null...
       public static void printFile(String textFile) throws IOException
            String inputString="";
            BufferedReader inputDataFile=
            new BufferedReader(new FileReader(CENTIGRADE_DATA_FILE));
            while(inputString!=null)
                inputString= inputDataFile.readLine();
                System.out.println(inputString);
            inputDataFile.close();
       

    ok cool thanks for pointing that out guys i appreciate it...now i need to take those temps and convert them from Strings to doubles so they can be converted i tried this but im getting a NumberFormatException error...
    public static void buildReport() throws IOException
            double centigradeTemp=0.00;
            String inputTemp="";
            //Open centigrade temps to be read and converted
            BufferedReader inputDataFile=
            new BufferedReader(new FileReader(CENTIGRADE_DATA_FILE));
            //Open file writer to write report
            PrintWriter outFile=new PrintWriter(new FileWriter("TempReport.txt"));
            //While loop to read a temp, convert it, and write it in the report
            while((inputTemp= inputDataFile.readLine())!=null)
                centigradeTemp=Integer.parseInt(inputTemp);           
                outFile.println(fahrenheit(centigradeTemp));
            outFile.close();
        public static double fahrenheit(double centigrade)
            double fahrenTemp=0.00;
            fahrenTemp=(9/5)*centigrade + 32;
            return fahrenTemp;
     

  • I have a new Macbook pro and need to run some Windows software, it appears "Parallel" should work well from what I've have read. Will I have any issues or problems accessing and printing from various printers on my Windows 7 network within Parallel?

    I have a new Macbook pro and need to run some Windows software, it appears "Parallel" should work well from what I've have read. Will I have any issues or problems accessing and printing from various printers on my Windows 7 network within Parallel? Is Parallel in fact the best way to go?

    First, back up all data immediately, as your boot drive might be failing.
    There are a few other possible causes of generalized slow performance that you can rule out easily.
    Reset the System Management Controller.
    If you have many image or video files on the Desktop with preview icons, move them to another folder.
    If applicable, uncheck all boxes in the iCloud preference pane.
    Disconnect all non-essential wired peripherals and remove aftermarket expansion cards, if any.
    Check your keychains in Keychain Access for excessively duplicated items.
    If you have more than one user account, you must be logged in as an administrator to carry out this step.
    Launch the Console application in the same way you launched Activity Monitor. Make sure the title of the Console window is All Messages. If it isn't, select All Messages from the SYSTEM LOG QUERIES menu on the left. If you don't see that menu, select
    View ▹ Show Log List
    from the menu bar.
    Select the 50 or so most recent entries in the log. Copy them to the Clipboard (command-C). Paste into a reply to this message (command-V). You're looking for entries at the end of the log, not at the beginning.
    When posting a log extract, be selective. Don't post more than is requested.
    Please do not indiscriminately dump thousands of lines from the log into this discussion.
    Important: Some personal information, such as your name, may appear in the log. Anonymize before posting. That should be easy to do if your extract is not too long.

  • Read and print PDF from content server

    Hi,
    I have a PDF document stored in the content server, I have a requirement to schedule a job to read the documents and print them. Is it possible to read and print them directly ?
    Thanks in advance

    Go Thru these links.
    Hope it will help you.
    http://help.sap.com/saphelp_nw04/helpdata/en/c8/4adf7ba13c4ac1b4600d4df15f8b84/content.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/37/47a2be350c4ac8afe36b691203971f/frameset.htm
    Reward if help.

  • Problem on reading and writing from from a *.txt file

    I get Problem on reading and writing from from a *.txt file. The following is the read() method...
    The software said the DataInputStream is depreciated. Can anyone help me please?
    public void read()
        File file = new File("C://Documents and Settings//Charles//My Documents//Brunel//EE2065//Assignment and Lab//Assignment 4 and Lab 4//data.txt");
        FileInputStream in = null;
        String str = "";
        try
          in = new BufferedReader(file);
          //in = new FileInputStream(file);
          for(;;)
            str = new BufferedReader(in).readLine();
            //str = new DataInputStream(in).readLine();
            if(str == null)
              break;
            System.out.print(str);
        in.close();
        catch(IOException e)
            System.err.println("execution error: " +e);
      }

    Thank you for your reply. I have made some change. However, there is an incompetable type found error.
    in = new BufferedReader(new InputStreamReader(in));The following are all of the code.
    public void read()
        File file = new File("C://Documents and Settings//Charles//My Documents//Brunel//EE2065//Assignment and Lab//Assignment 4 and Lab 4//data.txt");
        FileInputStream in = null;
        //BufferedReader in = null;
        String str = "";
        try
          in = new BufferedReader(new InputStreamReader(in));
          //in = new FileInputStream(file);
          for(;;)
            BufferedReader Bstr = new BufferedReader(new InputStreamReader(in));
            //str = new BufferedReader(in).readLine();
            //str = new DataInputStream(in).readLine();
            if(str == null)
              break;
            System.out.print(str);
        in.close();
        catch(IOException e)
            System.err.println("execution error: " +e);

  • HT4059 i purchased a tour guide book and would like to view and print from my PC, how can I?

    i purchased a tour guide book and would like to view and print from my PC, how can I?

    You purchased an ibook?
    Can I print my books and PDFs from iBooks?
    Yes, you can print PDFs and notes you've entered from iBooks, but the option to print ePub books is not available.2You can also email PDFs and notes you have written from iBooks."
    iBooks: Frequently Asked Questions (FAQ)

  • We are trying to implement a process so that any document that needs to be printed through our Java application will be printed as PDF using Adobe Reader. For which, We created and execute the below command line to call Adobe Reader and print the PDF on a

    We are trying to implement a process so that any document that needs to be printed through our Java application will be printed as PDF using Adobe Reader. For which, We created and execute the below command line to call Adobe Reader and print the PDF on a printer."C:\Program Files (x86)\Adobe\Reader 11.0\Reader\AcroRd32.exe" /T "\\<Application Server>\Report\<TEST.PDF>" "<Printer Name>". Current Situation: The above command line parameter when executed is working as expected in a User's Workspace. When executed in a command line on the Application Server is working as expected. But, the same is not working while executing it from Deployed environment.Software being used: 1. Adobe 11.0 enterprise version. 2. Webshpere Application Server 8.5.5.2. Please let us know if there is a way to enable trace logs in Adobe Reader to further diagnose this issue.

    This is the Acrobat.com forum.  Your question will have a much better chance being addressed in the Acrobat SDK forum.

  • I have a Macbook pro thats prints fine to my HP printer, but when I try and print from my iMac it doesnt see the pages and just prints two blank pages. Even thou the document is a number of pages

    I have a HP Officejet Pro 8500A and I had no problems printing to it from my Mac or Macbook pro. The macbook is wifi and the Mac is cable, I have recently had the printer replaced with an exact model. Since doing that I can only print from the macbook pro, when I try and print from teh mac it doesnt see the pages. It could be a 10 page document and it will just show two blank pages. I have googled the question and have tried deleating the printer and reinstalling without any luck. When I got the new printer I insalled all the latest drivers thats the only thing different.
    Could you please help
    Michelle

    Right click the printer in System Prefences -  Print & Scan and use Reset Printing System... and then reinstall the printer, should take less than 5 minutes. Here is a photo showing how to Reset Printing System....

  • Hi When going from Develop module to print module a white boarder appears on screen which also prints via my epson r3000 printer. I can get round this by exporting photo to Elements and printing from there but can i get rid of the boarder and print from l

    Hi When going from Develop module to print module a white boarder appears on screen which also prints via my epson r3000 printer. I can get round this by exporting photo to Elements and printing from there but can i get rid of the boarder and print from lightroom?

    In the printer driver (accessed through the Page Setup button) set the Advanced tab to borderless. Then in the right hand panel under Layout set all the margins to zero.

  • I was wondering, is there an application I can download from the App Store that allows me to plug in a USB cord from my Iphone and print from any computer?

    I was wondering, is there an application I can download from the App Store that allows me to plug in a USB cord from my Iphone and print from any printer?

    Sorry but no. iOS does not support connecting a printer via USB, only via WiFi, and without such support there's no way a developer can build an app to provide such capability.
    Regards.

  • HT4356 I GOT AN EPSON WP-4533 WHICH HAS AIR PRINT AND PRINTS FROM MY MAC AND MAC BOOK W/O PROBLEMS, BUT WON'T PRINT FROM MY IPHONE.  IT IS NOT ON THE ABOVE LIST OF PRINTERS, BUT BOTH EPSON AND APPLE SAID IT WILL WORK.

    I GOT AN EPSON WP-4533 WHICH HAS AIR PRINT AND PRINTS FROM MY MAC AND MAC BOOK W/O PROBLEMS, BUT WON'T PRINT FROM MY IPHONE.  PROBABLY BECAUSE IT'S NEW IT'S NOT ON THE APPLE LIST OF PRINTERS, BUT BOTH EPSON AND APPLE SAID IT WILL WORK. ANY THOUGHTS

    Some things you can try.
    Startup Issues - Resolve
    Startup Issues - Resolve (2)

  • HELP HELP REQUIRED!!!!!! Reading and Writing  from and into a Telnet Window

    Hi,
    I need to read and write into a Telnet window .But the Telnet window is a exe program that is been given by the Windows while installing the OS. Another thing is that I need to read and write into/from the Telnet window at a specific X and Y positions which will be defined in the database . I did searched for a dll of Telnet which can contain some APIs to achieve the task but I was unable to fine one.
    Even if u wont be able to provide me the perfect solution , Please guide me how to read and write from a executable window .
    Any help will be highly appreciated.
    Thanking in Advance.
    Mannu26.

    Hi Guys ,
    Thanks for the comments , atleast I got few but none were of any use to me. If u can Please help me on this topic it will be very kind of you .
    Take Care.
    Manoj.

  • HT1391 How can I read and print digital booklets that are downloaded togheter with the recordings I purchased

    How can I read and print digital booklets that are downloaded togheter with the albuns I bought?

    cu is right.
    classloader returns the URL of your resource. You can the jar using something like the following...
    ClassLoader classloader = this.getClassLoader();
    url = classloader.getResource("your_resouces...");
    if(url == null)
    System.out.println("cannot find resource ");
    return null;
    String jar = url.getFile();
    jar = jar.substring(jar.indexOf("/")+1, jar.lastIndexOf("!")).replace('/', '\\');
    obviously, this code snippet works on windows only. Now you have the jar file path. I use Jar file classes to access the jar file. (e.g. you can search for each class files)
    Ming

  • Why won't Chinese characters show after copying from Abobe Reader?

    Hi,
    I'm using Adobe Reader 9 to read a pdf of a Chinese grammar book. I tried copying the characters and pinyin from the pdf into  Mnemosyne to use for studying, however, it just comes up blank. I did it for another pdf and it comes up with weird characters. I downloaded the Chinese Simplified support and it does the same thing even after restarting my computer. Both pdfs allow for copying and were created with Adobe Distiller 7. I don't know what the problem is, but I would very much appreciate any help so I can get to studying.
    Thank you,
    hb

    If you don't get an answer here, you may want to post the question in the iMovie discussion here.

  • How to read and print a Pdf from Server

    Hallo, i need a help. I have some pdf documents on server and i want to allow viewing and printing them from the client. I would like not to have it outside my application cause i don't want client computers have to download adobe reader.. I think that purePDF can help me but i really don't know how to load the stream and put it on display.. Can anyone help me or give me some advices?
    Thx for all
    Max

    The simplest way that I know of would be to use 'navigateToURL()' and let the user to print the pdf from the browser.
    Does anyone have the advice on doing this within the Flex app; i.e. without opening a new browser window?
    FTQuest.

Maybe you are looking for

  • Foreign trade! Legal regulation control

    Hello Guys, If someone has worked on FT-Legal Regulation,kindly tell me whether it is possible to control regulations on the basis of Sales Organisation rather than Country of origin(which is derived from plant). The requirement is in Intercompany Bu

  • Exceptions raising or error handlng in RFC

    I need to create RFC(remote enabled function module) 1) I  put all import and export parameters as "Pass By Value" chek box checked. ( am I right ) 2). I have to send 'Return code' as zero, if the export parameter exists( I mean if SELECT stmt gives

  • FTE in MX controls via ANT

    Hi Flexy community Having some issues adding the FTE compiler options to ANT? currently I add it like so: <compiler.theme append="true" file="${FLEX_HOME}/frameworks/projects/spark/MXFTEText.css" /> having gone through many blogs and posts I can not

  • RH7 Importing Word Doc has problems

    I'm working on upgrading our company's robohelp version from 5 to 7 and have the free 30 day trial of RH7 to test. One thing I've noticed happening in RH7 is that certain text areas get changed from Arial Unicode MS plain to Arial Unicode MS Bold + I

  • Crazy Textfield Bug on GPU with softkeyboardbehavior - Android only

    Im am encountering a very weird bug on Android only (i think every android device, as I've tested, Droid Bionic, Galaxy S3, Nexus, Galaxy Tab) In my -app.xml, i have . <renderMode>gpu</renderMode> <softKeyboardBehavior>pan</softKeyboardBehavior> in m