Chinese Reading problem

Hi,
I am trying to read the pdf file that have chinese characters. I am using iText. But when I read them, it will give me hex string for those characters. I had tried too much variations to retrieve those chinese characters by applying different encodings, and other decoding ways but all in vain. Can any one help me out in this problem. Because this is my assignment to solve this problem. Can anyone help?
One more thing the pdf may be created through Acrobat Writer. Because when I write the chinese characters to write in PDF using iText. Then I do not put them in hex format inside PDF. Thats why those characters are easily taken out at reading. But from that pdf I am not able to get those Chinese characters. It is giving me hex string.
Regards,
Sheraz Ahmed

Hello I m facing a problem reading Chinese simplified document,,I  converted a TIFF file into PDF and installed Chinese simplified font,,my  need is to select the contents of the converted pdf and copy,paste into  a translator(google or systran) inorder to translate the chinese fonts  into English..but i could not select the converted pdf's contents in  text format,,it copies as images again..Please help with this..

Similar Messages

  • Image reading problem in servlet

    Image reading problem in servlet
    I am reading an image in servlet and writing it to ServletOutputStream
    The following code works fine unless I change the size of the byte array (for increasing download speed) from 8 to something like 128 or any other higher value
    If I change the value of byte array size the image does not get downloaded properly, I mean the quality of the image changes, it does not looks like the original imageURL url = new URL("http://www.mysite.com/images/img1.jpg");
    URLConnection con = url.openConnection();
    con.setUseCaches(false);
    BufferedInputStream in = new BufferedInputStream(con.getInputStream());
    BufferedOutputStream out = new BufferedOutputStream(response.getOutputStream());
    byte b[] = new byte[8];
    while(in.read(b) != -1)
         out.write(b);
         out.flush();               
    out.close();
    in.close();what do I change
    byte array size
    or use the constructor of BufferedInputStream with 2 parameter
    or use the constructor of BufferedOutputStream with 2 parameter
    or use flush outside while loop or what else

    Change your while loop to:
    int count;
    while((count = in.read(b)) != -1)
         out.write(b, 0, count);
         out.flush();               
    }The penultimate time read is called, it may not fill the entire byte array. You only want to write out however much was read into the array.
    For better performance, you should move the flush() outside of the loop too. BufferedOutputStream will flush automatically when its internal buffer is full.

  • Telnet read problem -- Telnet read back

    I am trying to use telnet to send TL1 command to my UUT and expect to read back measurement data.  I was able to read proper data once in a while but most of the time I read back the TL1 command that I sent.  I tried different read mode and timeout period but nothing seem to matter.  My vi was written in Labview 8.2.1 with Internet toolkit.  I read in the forum about some limitation of the telnet read problem of the vi from the internet toolkit,  Is there any better read driver around?
    Thanks,
    Patrick 

    Hey!  I have a few questions for you that should help us solve this problem.  First, have you tried out the telnet shipping example "Telnet Line Client.vi".  This will help us minimize programming errors, etc.  Also, what type of device are you trying to communicate with?  Are there other forms of communication available?  For example, does the device also have a serial port, GPIB Port, etc.?  Also, is it possible to write to the device using TCP/IP (This is what telnet is based on)?  Let me know the answers to these questions and I will be better equipped to help you out!!
    Thanks!
    Dan
    Daniel Eaton
    National Instruments
    Systems Engineering
    Embedded and Industrial Control

  • T 420s cooling air coming out is very hot, finger print reader problem

    I am living in ruwais, abudhabi.i bought T 420s in last June from LENOVO  authorized distributor. Model number is 4174-KK4 and the sr no ***.
    Sometime the cooling air coming out is very hot, unable to keep the laptop on the lap.
    The cooling fan also replaced still the temperature is high.
    After replacing the fan I noticed that I noticed one of the screws was not fixed, I asked them to fix it, then they fixed it.
    I traveled back to my home 240 KM from the  authorized distributor service  center. when I started the laptop, the fingerprint reader was not working . Then I traveled back 240 KM to the  authorized distributor service  center to fix the issue. They fixed the fingerprint reader problem.
    Then now the SD card reader is not working. I was asked to bring the laptop to the  authorized distributor service centre.
    Can any one experience the same type of problems  with T 420s the cooling air coming out is very hot, finger print reader problem, card reader not working?
    The authorized distributor says for the service they can only cover 50 KM form the  authorized distributor service  center to the customer point, what is the conditions for the On site warranty ?. I am living 240 KM away from the authorized distributor service center from whom I bought the laptop.
    Moderator comment: Serial number(s) removed to protect member from mischief.

    Well clearly after the first incident. You need to check and us it verifying everything is working before leaving the service center or town its in. Go to a coffee shop and spend time using it and test each option is working.
    When the notebook its opened the finger print reader, card reader etc may not be connect properly or connectors not snap fully and disconnect. Mouse ultranav I have heard may also. But clearly you assume too much and you need to spend the time testing its working before leaving.
    These service center are only paid a fixed amount so they won't spend anymore time then they have to and address one problem you brought it in for.
    As for heat out put and over heating. There are many threads on these systems you can find and read about.
    Advice:
    - install Core Temp, this will monitor and display on the task bar you CPU core temp and you can see CPU load & Temperature at a glance if it approaching or staying near the max levels which will kill the CPU and/or motherboard due to cooking it. Its free just be sure to deselect any additional software from installing during the process. I use it on my notebooks. If the system is running high core Temp all the time you need to have it resolved or it will die and most likely out of warranty and/or your data will be lost if you don't have a backup as well. http://www.alcpu.com/CoreTemp/
    - use a laptop cooler. Its a flat pad you sit the laptop on you lap or table with usually two cooling fans that plug into the USB port for power. It will help cool the base of the laptop and other components inside will not be as hot. This will do nothing for the CPU temperature though.
    T520 Model 4239 Intel(R) Core(TM) i7-2860QM CPU @ 2.50GHz
    Intel Sandy Bridge & Nvidia NVS 4200M graphics Intel N 6300 Wi-Fi adapter
    Windows 7 Home Prem - 64bit w/8GB DDR3

  • I am unable to print documents.  States Adobe reader problem

    I cannot print documents as it says Adobe reader problem or error

    Windows 7; HP 2009m; printer is Lexmark S415;
    Message says
    Acro RD32.exe
    Adobe PDF document
    (There is a problem with Adobe Adrobat/Reader.  If it is running, please
    exit and try again. (15:3)

  • DataSocket Read problem

    Hi all,
    When I use the new condensed "DataSocket Read" vi in Labview 6i (which is
    unfortunately not editable and is supposed to replace old vi's like "open
    connection", "update", "close" and so on) a single time to read automat
    words through an OPC server, the vi returns "zeros" all the way. The only
    solution I found to read the right datas is to place the "DataSocket Read"
    in a "While Loop" which loops until datas are different from zeros, which
    is very inconvenient and time consuming. I tried diffferent settings with
    "DataSocket Read" (wait for update, timeout) but the problem remains.
    Have you also faced the same problem ? Is there a solution ? Thanks for your
    assistance.
    Gaël RENEVIER
    Responsable Maintenance & Développement
    Tél : 04 74 82 20 08
    Fax : 04 74 82 24 92
    e-mail : [email protected]

    This is a problem with the 6i data socket routines ... use the old routines
    from the data socket examples (with the open,update, close drivers), and it
    works fine.
    Dave Gianetto
    http://www.gianetto.org
    > From: [email protected]
    > Organization: UUNET
    > Newsgroups: comp.lang.labview
    > Date: Tue, 21 Nov 2000 16:05:38 +0100
    > Subject: DataSocket Read problem
    >
    > Hi all,
    >
    > When I use the new condensed "DataSocket Read" vi in Labview 6i (which is
    > unfortunately not editable and is supposed to replace old vi's like "open
    > connection", "update", "close" and so on) a single time to read automat
    > words through an OPC server, the vi returns "zeros" all the way. The only
    > solution I found to read the right datas is to place the "DataSocket Read"
    > in a "W
    hile Loop" which loops until datas are different from zeros, which
    > is very inconvenient and time consuming. I tried diffferent settings with
    > "DataSocket Read" (wait for update, timeout) but the problem remains.
    >
    > Have you also faced the same problem ? Is there a solution ? Thanks for your
    > assistance.
    >
    >
    > Gaël RENEVIER
    > Responsable Maintenance & Développement
    > Tél : 04 74 82 20 08
    > Fax : 04 74 82 24 92
    > e-mail : [email protected]
    >
    >

  • Card Reader problem with MSI K8T Neo

    Hi,
    I have the K8T Neo motherboard, and every once and a while my Atech Flash 9 in 1 card reader  (http://www.newegg.com/app/ViewProductDesc.asp?description=20-176-003&depa=0) doesn't power up, thus I can't use it.
    What's odd is that all my other USB devices work flawlessly.
    The only way I'm able to use the card reader again is to power down my computer and then flip the power switch on the psu, then turn it back on, or unplug the reader from the usb header on the motherboard and plug it back in.
    I've noticed other people have had similar issues...
    Any ideas what causes this, or any ideas on how to fix this?
    Bio Haz

    Yes, I had the same hanging problems as well with older BIOS versions then 1.7.
    But that isn't the problem I'm talking about, the computer always starts up, it's just a matter if the usb reader will work or not.
    Maybe MSI has yet to make a BIOS that is compatible with all card readers.
    BioHaz
    Quote
    Originally posted by me_AMD
    ...yes, I had USB card reader problems but it caused the computer to hang during POST, and that was fixed with BIOS v1.7...
    ...I've had what you describe happen on another machine with a Mitsumi card reader/floppy drive combo...not sure what caused it...had to disconnect it and then plug it back in...???...

  • JSP + MySQL + Linux + Tomcat4.1 Chinese display problem

    Hello all!
    I have a problem to use JSP to display Chinese which is read from MySQL database. It works well under Windows XP. But when I move the code to Linux. The Chinese can't be displayed any more.
    The only way to display Chinese correctly is to remove <%@ page contentType="text/html; charset=Big5" %>. This requires to set the browser encoding manually every time, which is not what I want.
    I am not sure if I need store the Chinese as Big5 or other unicode in MySQL. Right now, I just insert it into database directly without specifying the characters set.
    I have been searching for solutions for quite a while and can't get the answer. Please help me to conquer this problem!
    Below is the simplified version of my code:
    <html>
    <head>
    <%@ page contentType="text/html; charset=Big5" %>
    <%@ page import="java.util.*" %>
    <%@ page import="java.sql.*" %>
    <%@ page import="ConnectionPool.*" %>
    <%@ page session="true" %>
    </head>
    <body>
    <table>                    
    <%
    ServletContext context = getServletContext();
    ConnectionPool connectionPool = (ConnectionPool)context.getAttribute("ConnectionPool");
    Connection connection = connectionPool.getConnection();
    Statement statement = connection.createStatement();
    String sqlCmd = "SELECT chinese_word FROM word";     
    String chinese_word;
    ResultSet rs = statement.executeQuery(sqlCmd);
    while (rs.next())
         chinese_word = rs.getString("chinese_word ");               
         out.println("<tr><td>" + chinese_word );
         out.println("</td></tr>");
    connectionPool.free(connection);
    %>
    </table>
    </body>
    </html>
    Thanks a bunch,
    Sophie

    hi
    i am india so no much command on chiness, but, as a solution process , i suggest this
    in jsp, response is the default object, so, whereever u want chiness char, use
    response.setContentType("text/html; charset=Big5");
    and again swith to normal english mode
    hope it proceeds...
    pranav

  • Chinese Character  Problem in Essbase Integration Service & Oracle9i

    I installed oracle9i on windows2000,which character set is SIMPLIFIED CHINESE_CHINA.zhs16cgb231280. And I installed Essbase Integration Service 6.5.4 on HP-UNIX server. I designed an OLAP Model in Integration Services Console and I defined some dimensions name using chinese characters. When I saved the model, the chinese characters I inputed is saved as some question marks(?) in the tables in oracle 9i. After I loaded the dimension data which include the chinese charaters, the dimension data which is chinese characters also displayed question marks in the EIS console. I have added the variable NLS_LANG="SIMPLIFIED CHINESE_CHINA.zhs16cgb231280" in the .profile, but it did not work either. How can I solve this problem? Can I do any configuration on EIS files to solve this problem? Would you please help me? Thank you very much!

    Check for SETLOCALE in EIS<BR>SETLOCALE <LANGUAGE_TERRITORY.CODEPAGE@SORT><BR>SETLOCALE .UTF8@default<BR>this might help you.

  • Preview Chinese Character Problem

    Hi expert,
    I face a problem in smartforms, the problem is the Chinese char that I used it not show properly..
    It looks like the Char all is combine together but when I print it out, all is fine.

    If you have taken care of the two settings at windows and sap as shown below you should not face any problem.
    Windows->Settings>Control Panel>Regional and Language Option>Language Tick both the checkboxes over there.
    SAP->Customizing of local layout[nothing but last button of the toolbar at sap screen->Option--->I18N (Activate Multibyte Function Support)
    And then try to logon in SAP and use your transaction.
    I think you will not be able to see in print preview stage just take a print out and then check.

  • Chinese Conversion Problem -Data Transfer

    Dear Guru's
    We are implementing SAP to china Client we are facing problems in following areas please suggest me as of how to go about in these aspects
    1. Base Unit of measurement
    We are using PCS as our unit of measurement. In English Login we are getting PC is same as expected and when we log-in in Chinese we are getting Numeric value '211' at the place of Unit of Measure.
    2. Out Put Conversion
    In Chinese Login When we Create Delivery/Invoice/Packing list Out put The System is not converting the details into Chinese.The Display of Delivery is in English irrespective of Log-in. So kindly Let us know how to Go about it.
    3. Master data F4 Display Screen
    During Master data Access when we go for Search Screen F4 we are getting Question mark Symbols.
    These are Some of the Major issues
    So Kindly Let Us know How to Go about.
    Regards
    Kiran Nazare

    to 1)  the translation of the unit is not done to Chinese language.
    Not everything is SAP delviered if you install a new language.Some customizing has to be translated by yourself.
    goto CUNI and select from menu GOTO > translation..
    2) the form is usually your own form, so you need to translate the form to the new language
    3) about which field are you talking, where do you see the ?????
    Does this only happen for loaded materials or as well for  manually created materials?

  • Displaying Chinese read from resource bundles

    I have trouble displaying Chinese characters in my application. The text strings in the application that is shown to the user are put into resource bundles (ResourceBundle). In the file text_zh_TW.properties, the chinese text strings are located. The file is stored in UTF-8 format.
    When I fetch a chinese string from this file and display it in the GUI, it is not dispalyed properly. It is displayed almost like this '����>'.
    When I "format" the file by using native2ascii, the chinese chars are replaced by unicode escape numbers in the file. Then it works. But I will rather not format the file, because it makes maintanence more difficult.
    I'm using JBuilder as development tool.
    Does anyone know how to do this?

    u are just trying to do nothing but the internalisation concept. usually wat we do is that for example if we want o display any french language or german language we just use go to the corresponding trnslating websites and fetch those french words or any other corresponding language and use to store those words .properties file and after that we will display those words for the selected language.
    now ur problem is that as we dont have chinese letters in our keyboards u just go to the sites which will translate those words u mention and u just take a print screen and convert those words by cutting using mspaint and save it as .jpg file format and display those wods correspondingly....

  • Some chinese words problem in Javamail via MS Exchange Server

    Dear All
    I have a Javamail problem.
    When I use Javamail to send email via MS Exchange Server, there are some chinese words will become corrupt code and not all chinese words. i.e ("��", The code in big5 is "F9 D6").
    If I use Javamail + Linux SendMail, this problem will not happen. All chinese words will display correctly by the same program. Anybody else know why and how to resolve it?
    The following code is part of my program.
    String mailHost = "192.168.1.255";
    String subject = "TESTING WORD ��";
    String mailBody = "TESTING WORD ��";
    Properties props = new Properties();
    props.put("mail.smtp.host", mailHost);
    Session session = Session.getDefaultInstance(props, null);
    MimeMessage msg = new MimeMessage(session);
    msg.setFrom(from);
    msg.setRecipients(Message.RecipientType.TO, addressTO);
    msg.setSubject("=?big5?B?" + enc.encode(subject.getBytes()) +"?=");
    msg.setContent(mailBody, "text/html; charset=big5");
    Transport.send(msg);

    clearly looks like an MS Exchange problem to me. May be they are not encoding the 8 bit data properly? So, you are using MS Exchange to send it and which client do you use to read the mail sent?

  • Chinese Enabled Problems (Cont'd)

              Hi !
              I added <jsp:directive.page contentType="text/html; charset=big5"/> inside the page, but it didnot work at all.
              Afterwards I added <%@ page contentType="text/html;charset=big5"%> (JSP 0.9 version), the Chinese Words were shown correctly, but when I included files within the Jsp page, the codes of those files were shown on the web page. (see mppage.jpg)
              This is how I included the files
              <%@include file = "head.jsp" %>
              Does anyone have clues how to solve this problem ?
              Thanks !
              From Allen
              

    I'm wondering if they don't really know about it, or if they consider it not to be a problem.
    I looked through their support pages, including "Top Support Topics", and there's nothing. They obviously don't consider it a top support issue. Nothing in their "iPhone Troubleshooting Assistant" section either. They never did answer my support query.
    Should I just give up? You'd think by now they would have said something if it was a known issue that they were working on. If it's not even mentioned on their support site, then it's obviously not worth their attention.
    I feel like an un-valued customer not worth the courtesy of an acknowledgement. It's as if this issue is a figment of our imaginations, as if it doesn't exist at all. What kind of company treats its customers this way?

  • Chinese SMS Problems

    Hello,
    I've just installed new Blackberry Device Software from Reliance (East Asian, Platform 4.1.0.65, App 4.7.1.53) . Everything works fine until I found out the problem in SMS - the chinese text I typed turned into ????
    Could someone help me about this problem and if this is a leaked, could someone give me explanation when this problem is solved?
    Thanks,
    Best regard, andy

    http://forums.wireless.att.com/t5/Messaging/Unable-to-send-and-receive-Chinese-t ext-messages/m-p/1330583/page/2
    Looks like AT&T does not support unicode sms messages. Still.

Maybe you are looking for

  • How to lock a database Z table before updating it through a report program

    Hi, How to lock a database Z table before updating it through a report program and also how to unlock it after my updation. The whole process is done through report program.

  • You tube App

    Hi Guys, Can anyone help me with my iphone 4 . The app for you tube wont allow me to play anything anymore. It was working fine until recently, everything now say movie format not supported. I am thinking there must be something in the settings that

  • [svn:bz-trunk] 18377: Remove WEB-INF/flex/ jars from classpath in qa-manual and qa-regress.

    Revision: 18377 Revision: 18377 Author:   [email protected] Date:     2010-10-29 12:17:57 -0700 (Fri, 29 Oct 2010) Log Message: Remove WEB-INF/flex/jars from classpath in qa-manual and qa-regress.  This folder no longer exists as we don't have the we

  • SG100D-08 EU - 2 LED indicators per port - 1 for the traffic - The 2nd one?

    Hello, I'm using for one part of our small business network a SG100D-08 EU switch. For an unknown reason, this switch is not working at one location. When connected to a laptop, the laptop is not getting an IP address. If I replace that Cisco switch

  • Dataguard problems

    I have one primary and one standby (physical) database ver.10gR2. It's been working with no problems for over a year but recently it kept having problem of missing one archivelog file on standby and cause a gap and the standby will just sit there in