Unable to print Japanese string...

Hi,
I have written a java code in which i am giving input as one Japanese string.
I need to write it to a file and also have to find its length (Length as a normal single byte string).
But i getting output as ?????? in place of Japanese string.
Also when i close and reopen the java file in Jdev, Japanese string gets replaced by ????????.
I need help on this as what correct charset will be in this case and if any other language specific settings we need to do.
Thanks

<%@page pageEncoding="Shift_JIS"%>
<%@page contentType="text/html; charset=Shift_JIS"%>
<%request.setCharacterEncoding("Shift_JIS");%>
<head>
<META http-equiv="Content-Type" content="text/html;charset=Shift_JIS">
</head>

Similar Messages

  • Unable to print Japanese print...

    Hi,
    I have written a java code in which i am giving input as one Japanese string.
    I need to write it to a file and also have to find its length (Length as a normal single byte string).
    But i getting output as ?????? in place of Japanese string.
    Also when i close and reopen the java file in Jdev, Japanese string gets replaced by ????????.
    I need help on this as what correct charset will be in this case and if any other language specific settings we need to do.
    Thanks

    <%@page pageEncoding="Shift_JIS"%>
    <%@page contentType="text/html; charset=Shift_JIS"%>
    <%request.setCharacterEncoding("Shift_JIS");%>
    <head>
    <META http-equiv="Content-Type" content="text/html;charset=Shift_JIS">
    </head>

  • Unable to Print Japanese

    hi all
    i m working on Japanese OS win -2000
    i have developed an application which support Japanese
    if i try to print some japanese documents from this application.it prints squares instead of Japanese Characters.the printer is installed over a machine with
    enlish OS win-2000.can any one have solution to this problem
    thanx

    thanx martin
    but i m able to diasplay japanese in Swing components succesfully,but i have a printing option in my application
    if i try to take print of these components from my printing option then it does not print instead it prints
    Squrares and throws exception like this
    sun.io.UnknownCharacterException sun.io.UnknownCharacterException      at sun.io.CharToByteISO8859_1.convert(CharToByteISO8859_1.java:138)      at sun.awt.PlatformFont.makeConvertedMultiFontChars(PlatformFont.java:470)      at sun.awt.PlatformFont.makeConvertedMultiFontString(PlatformFont.java:400)      at sun.awt.windows.WPrinterJob.textOut(Native Method)      at sun.awt.windows.WPrinterJob.textOut(WPrinterJob.java:587)      at sun.awt.windows.WPathGraphics.drawString(WPathGraphics.java:352)      at sun.awt.windows.WPathGraphics.drawString(WPathGraphics.java:207)      at GUI_Elements.GUIBaseElement.drawZoomedString(GUIBaseElement.java:1942)      at GUI_Elements.GUIBaseElement.drawZoomedString(GUIBaseElement.java:1833)      at GUI_Elements.GUIPackage.paint(GUIPackage.java:161)      at javax.swing.JComponent.print(JComponent.java:820)      at javax.swing.JComponent.printAll(JComponent.java:797)      at javax.swing.JComponent.paintChildren(JComponent.java:530)      at javax.swing.JComponent.printChildren(JComponent.java:848)      at javax.swing.JComponent.paint(JComponent.java:751)      at GUI_Elements.DiagramInternalPane.paint(DiagramInternalPane.java:754)      at GUI_Elements.Preview$MyDiagramInternalPane.paint(Preview.java:665)      at javax.swing.JComponent.print(JComponent.java:820)      at javax.swing.JComponent.printAll(JComponent.java:797)      at javax.swing.JComponent.paintChildren(JComponent.java:530)      at javax.swing.JComponent.printChildren(JComponent.java:848)      at javax.swing.JComponent.paint(JComponent.java:751)      at GUI_Elements.DiagramInternalPane.paint(DiagramInternalPane.java:754)      at GUI_Elements.Preview$MyDiagramInternalPane.paint(Preview.java:665)      at javax.swing.JComponent.print(JComponent.java:820)      at javax.swing.JComponent.printAll(JComponent.java:797)      at GUI_Elements.Preview$MyDiagramInternalPane.print(Preview.java:659)      at sun.java2d.RasterPrinterJob.printPage(RasterPrinterJob.java:703)      at sun.java2d.RasterPrinterJob.print(RasterPrinterJob.java:342)      at GUI_Elements.Preview.print(Preview.java:317)      at GUI_Elements.Preview.actionPerformed(Preview.java:446)

  • Officejet Pro 8500A - unable to print on odd-size paper

    After a couple of hours of frustration, I have decided that I an unable to print on odd-sized paper on our brand new HP printer!  On an older string in this user forum, one suggestion was to make a paper cut-out from regular sized paper to put on top of an envelope to "fool" the printer into thinking it was using standard sized paper.  I am trying to print odd-sized wedding invitations, and in order to to do this, I wouldn't be able to use the paper guides intended to keep the smaller paper in the middle.
    Another suggestion would be to create a "custom size" paper in the printer properties, which doesn't seem to be possible in Windows XP as far as I can see. 
    My card-stock paper measures 4 3/4" x 6 7/8"  Neither 5 x 7" nor 4 x 6" will work and I have tried numerous others, such as Janpanese postcard, Index card 4 x 6, etc. 
    Any suggestions?  This is frustrating enough to look at other namebrand printers next time, but I guess I'm stuck with this one for a while!

    Hello @drlogan0, 
    Welcome to the HP forums.
    I understand that you are encountering problems with getting your Officejet pro 8500A onto your new wireless network.
    I would like to help.
    i would try restoring the network defaults. This will help erase any 'old' information that may be stuck in the printers memory. I would like to give you specific steps for this, but I am unsure if you have the 8500A, 8500A wireless, or the 8500A premium.
    Basically the steps are, go into the network menu, and select restore network defaults.
    If you have tried restoring the network defaults already, please review the following troubleshooting documents.
    Setting Up the Printer for a Wired or Wireless Network for the HP Officejet Pro 8500A
    Printer Does Not Maintain Wireless Connection
    Aardvark1
    I work on behalf of HP
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" on the right to say “Thanks” for helping!

  • I am unable to print to the Lightning PDF software (by Avanquest Software) after updating to 6.02. It worked with the previous version of Firefox. Is there a patch or fix for this problem?

    I am unable to print to the Lightning PDF software (by Avanquest Software) after updating to 6.02. It worked with the previous version of Firefox. Is there a patch or fix for this problem?
    This is the error that is received:
    Cannot open file "C:\Users\Calandra\AppData\Local\Temp\Ask_a_Question__Firefox_Help.pdf". The process cannot access the file because it is being used by another process
    Any information that you can provide will be greatly appreciated.

    Sorry to say that, but the entire system seems ill-designed.
    If I understand correctly, then to add a new Section to a site, you have to subclass SubSection and somewhow integrate that into the system?
    I would be my expectation that you only need to subclass SubSection when you tried to introduce a new type of SubSection.
    The title & all other natural language Strings should never be hardcoded in Java code, but rather taken from some external storage (Database, XML, flat files, ...).

  • After installing update 11.0.07, I have been unable to print pdf douments from websites displayed in I.E. 11

    I just installed 11.0.07 and since then have been unable to print pdf documents from websites displayed in I.E. 11 (32 bit). The problem did not exist until I installed the update. Opening the same sites with Chrome solves the problem, but some of the important sites I use, (FAA WebOPPS for instance) don't work with Chrome or anything other than I.E. for that matter. Does anyone know if Adobe is aware of the bug and working on a fix?

    Let me put it in context.I am a developer, and in my work we create a flex application a few years ago and we are providing support to this application. Since 2 days ago th button we create in our application for View PDF just stopped working. We use this code:
    public function navigate( url:String ):void
      navigateToURL( new URLRequest( url ), OPEN_NEW_WINDOW );
    It is very simplistic and worked fine as I told you, until Tuesday this week. Please tell me what happened, it seems the last plugin version crashes somewhere and my button just does not work any more.
    Thank you.

  • Unable to print - Event 42.B0.01

    Hi, My printer didn't print via computer.
    I configure the printer (LAN, etc.), I can access it through his webserver, I can print his configuration via the printer menu, but I am unable to print via a computer (even the test page). The printer's engine begin to run, but nothing prints. In the event log, there are many :
    42.B0.01 Missing String ID : en-US : cReportedProblemsLog Product name : HP LaserJet M605
    Device modele : E6B69A
    Firmware : 2304061_439462 Thank you for your support,

    Hello @stormanh  ,  and welcome to the HP Forums.
    I am sorry, but to get your issue more exposure I would suggest posting it in the commercial forums since this is a commercial product. You can do this at HP Commercial LaserJet Forums.
    I hope this helps!
    Please click “Accept as Solution " if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos, Thumbs Up" on the right to say “Thanks" for helping!
    Jamieson
    I work on behalf of HP
    "Remember, I'm pulling for you, we're all in this together!" - Red Green.

  • I am unable to print from my ipod to HP5510 which is listed as one of Apple's Airprinters

    I  am unable to print from my ipod to HP5510 which is listed in Apple's list of recognised Airprinters

    Start up in safe mode
    http://support.apple.com/kb/PH4373   <<< click here.
    Restore your computer’s software
    http://support.apple.com/kb/PH3840   <<< click here.
    http://www.apple.com/buy/locator/   <<< click here.

  • HT4356 unable to print from my ipad mini

    unable to print from ipad1 or ipad mini.  tried all suggestions in support.  This problem has been highlighted before is there a a problem with an software upgrade.  I have hp 5510 that works fine fromPC.

    I rebooted my BT router,  Switched printer off and on, Checked printer on same wifi as router.  closed ipad wifi to forget this network and reselected. 
    Printer worked OK on my ipad1 up until a few months ago it has never worked on my new ipad mini.  works from my PC.

  • How do I use air print, after updating to 7.0 on iPad am unable to print. Pretty fed up with apples tricks

    Unable to print to hp printer AirPrint after update to 7.0. 7.1

    AirPrint Setup and Troubleshooting
    http://www.apple.com/support/ipad/assistant/airprint/
    How to print from your new iPad using AirPrint
    http://www.imore.com/print-ipad-airprint
    AirPrint Basics
    http://support.apple.com/kb/ht4356
    Try this  - Reset the iPad by holding down on the Sleep and Home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons. (This is equivalent to rebooting your computer.) No data/files will be erased. http://support.apple.com/kb/ht1430
     Cheers, Tom

  • Unable to print from HP Deskjet 1510

    Scan and photocopy are working fine.HP print and scan doctor shows everthing is fine but I am unable to print test document. 

    Hi deepakgupta, Please try the following: Uninstall the software. Uninstalling the Printer Software.Unplug the USB printer cable.Clean boot the computer. How to perform a clean boot in Windows.Disable any Antivirus programs. Disable Antivirus software.Disable any firewall programs. Turn Windows Firewall on or off.Create a new user account. Managing User Accounts and Logins (Windows 7).Reinstall using the Full Feature Software And Drivers. (Wait for the software to tell you to plug in the USB printer cable.) Hope this helps!  “Please click the Thumbs up icon below to thank me for responding.”

  • HP Officejet Pro 8610 - Unable to print windows 8.1

    Hi ,
    I've recently purchased HP Officejet Pro 8610 and unable to print from windows.
    I am running 64bit Windows 8.1
    I can print from Web via email
    I can print using the HP AiO Remote app in windows. This doesnt have full functionality and is also inconvenient if I am working on documents and I want to print.
    I have tried the following:
    - Uninstalling and reinstalling from CD provided with printer
    - Using the HP printer troubleshooter assistant, no success
    - Downloading the software direct from HP website
    - Updating the firmware using OJP8610_R1416A.exe
    -Changing the port to the network port (in this case it is 192.168.0.200, it responds to a ping, also set the printer to have a static ip)
    This is the error message that i get when i try to print a test page when i choose printer properties in the control panel
    "test page failed to print. would you like to view the printer troubleshooter for assistance"
    I have trawlled through other member's issues and i cant seem to find a fix for myself
    Please help
    Appreciation in advanced

    Hi @binhdai  & @JFB2014 
    I would like to help you both the best I can, and I appreciate the troubleshooting efforts you have both made up to this point. Please try the steps below and let me know the outcome;
    1. Uninstall the software - Uninstalling the Printer Software Instructions.
    2. Hold down the Windows Logo key () on the keyboard and the 'R' to open the run box.
    3. Type in "spool" and press Enter or select OK.
    4. Select and open the Drivers folder, select the x64 folder if you have a 64-bit Operating System or the w32 x 86 if you have a 32-bit Operating System.
    5. Open the 3 folder, locate the HPBXPSRENDER.DLL file and rename it into HPBXPSRENDER.OLD
    6. Reinstall the printer; HP Officejet Pro 8610 e-All-in-One Printer series Full Feature Software and Drivers
    Fingers crossed
    Please click the Thumbs up icon below to thank me for responding.
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Please click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution.
    Sunshyn2005 - I work on behalf of HP

  • Unable to print multiple line items in Z-SAP SCRIPT

    Hi ALL,
    We have a scenario where in we are calling the Driver program (RFKORD50) for Document Extract(F.64), Where in we have attached the Z-Script to the program(RFKORD50),
    Unable to print multiple items.
    1) Checked with all the elements in STD program for printing multiple items in main window but unable to get all the items we are able to fetch only 1 item .
    (&BSEG-BUZEI&,,     &BSEG-SGTXT&,,,,&BSEG-DMBTR&)
    2) I have also tried with external subroutine but it also didnot work.it is fetching the latest value.
    Ex: if we have 3 items say 1,2,3 first 2 items are not getting fetched it is taking 3rd item and printing it straight away(Problem is it is not going to script for fetching the first item).
    see the perform which i have used
    /: PERFORM ITEMS IN PROGRAM ZTFI_ZNV20296
    /:USING &BSEG-BUKRS&
    /:USING &BKPF-BELNR&
    /:USING &BSEG-GJAHR&
    /:CHANGING &V_BUZEI&
    /:CHANGING &V_SGTXT&
    /:CHANGING &V_DMBTR&
    /: ENDPERFORM
    IL  &V_BUZEI&,,     &V_SGTXT&,,,,&V_DMBTR&
    Please suggest me whetther we can call write_form from external subroutine. or is there any loop commands in SAP SCRIPT Form.
    Regards,
    Jana

    Hi!
    The LOOP is always within the printer program. In this case also.
    Just check out the RFKORI35 include, the LOOP begins in the 215th line (in 4.6C).
    SORT HBSEG BY BUKRS SORTP1 SORTP2 SORTP3 SORTP4 SORTP5
                          BELNR GJAHR BUZEI.
            LOOP AT HBSEG.
    *         WHERE BUKRS = SAVE_BUKRS.
              SAVE_BUKRS  = HBSEG-BUKRS.
              IF  ( HBSEG-KUNNR = SAVE_KUNNR
              AND   NOT SAVE_KUNNR IS INITIAL )
              OR  ( HBSEG-LIFNR = SAVE_LIFNR
              AND   NOT SAVE_LIFNR IS INITIAL ).
                CLEAR RF140-ELEMENT.
                RF140-ELEMENT = '521'.
                CALL FUNCTION 'WRITE_FORM'
                         EXPORTING  WINDOW    = 'MAIN'
                                    ELEMENT   = '521'
                         EXCEPTIONS WINDOW    = 1
                                    ELEMENT   = 2.
    You might try out to write your code within the 521 elemnt in the sapscript.
    Regards
    Tamás
    Edited by: Tamás Nyisztor on Jun 12, 2008 3:34 PM

  • I am unable to print color photos from i photo using a Brother Printer

    I am unable to print color photos from i photo using a Brother MFC-6490CW all in one.  The photos appear to be in grayscale.  I have checked the printer settings, but for some reason I am not able to access the color management on my printer from printer set up.  It only gives me the standard option.  I have spent hours checking Bother's website and Apple's and I am not able to come up with a valid answer.  I know that the color print works.  If I print something from the internet of from outlook it will print in color.  I know all of my cartridges are in working order, I have cleaned the print head on my Brother, but I am still not able to print photos in color!!!
    What puzzles me the most is why I am unable to really access the color management menu on my printer?  It just does not come up.  I have the option from paper handling to print photos, but this has nothing to do with the quality.  I have also tried printing the photo from an Adobe PDF file and I still have the same problem.  Can anyone point me in the right direction?  Thank you.

    In the Print dialogue box click on the little triangle to the right of the name of the printer. That will expand the dialogue box.

  • PDF: Unable to print a document as PDF from APEX when using the BI Publishe

    Hi,
    From an APEX application, I am unable to print a document in a PDF format when using the Oracle BI Publisher.\
    Here is the configuration:
    1) Server A is W2K3 and hosts the Oracle BI Publisher server, with IP address ip01.
    2) Server B is a OEL5.2 and hosts the database server of the APEX application, with IP address ip02.
    3) Machine C is a W7 desktop from which through an URL both the APEX applicationn and the BI server are accessed, with IP address ip03.
    4) The APEX application is configured with the following to use the Oracle BI Publisher:
    - Printer server: Advanced (requires Oracle BI Publisher)
    - Printer server protocol: HTTP
    - Printer server host address: ip01
    - Printer server port: 9704
    - Printer server script: /xmlpserver/convert
    - Network services are enabled (at least I did get any warning/error message)
    From C, I access the the APEX application through its URL, if I try to download a page by selecting PDF in the download section of the interative report section for that page, I am unable to open if and get the error:
    <file>. pdf file can not be opened because the file type is not supported or because it is damaged (because, for example as an e-mail attachment is not sent and correctly decoded)
    Yet, still from C, I am able to open any other PDF document.
    The same way, still from C, acessing the APEX application through its URL, I have a query report defined with a PDF output format. Then, when I test the report (Test Report in the Report query) for that query, I get the error:
    ORA-20001: The printing engine could not be reached because either the URL specified is incorrect or a proxy URL needs to be specified.
    At first sight this could be a wong entry in the priinter configuration for APEX. But with this address, through the URL I can log in to the Oracle BI Publisher server.
    Does someone has an idea what the problem could be?
    Thanks for any tips.

    How are you trying to print to pdf?
    Don't go via PostScript or Acrobat Distiller, which are old deprecated technology.
    You use:
    Menu > File > Print > PDF (button bottom left) > Save as PDF…
    Peter

Maybe you are looking for