Unable to print 'Chinese' through JavaScript.....It is throughing Unicode

Hi experts,
I am unable to display 'chinese' characters through Javascript. For example the following statement is giving unicode characters, rather than chinese.
alert("<%= bundle.getString("welcome")%>");
The following statement giving Chinsese output as expected.
<%= bundle.getString("welcome") %>
Inorder to output 'Chinese' through JavaScript, what have to i do ??
Please let me know if there is any document on this...

Dear Srinivas,
I have tested the situation that you mentioned. It is ok to call javascript to display chinese.
Have you forget to add following line ?
<%@ page contentType="text/html;charset=utf-8" %>
By default, jsp use ISO_8859_1 as charset.
Also you can download the following package and check whatever your chinese bytes are correct by using printBytes() .
http://www.angelfire.com/amiga/yores/
M.T.

Similar Messages

  • I am unable to print a pdf from a website through Adobe Reader on my mac. It keeps telling me that no pages have been selected

    I am unable to print a pdf from a website through Adobe Reader on my mac. It keeps telling me that no pages have been selected - I have uploaded the latest version of Adobe with no luck and have never had this issue before !

    Hi bengaunt ,
    Thank you for posting on the Adobe forums, you can try printing as an image.
    Open the file>Print>advanced>check the box "print as an image" OK
    Thanks,
    Vikrantt Singh

  • Unable to print chinese characters

    Hello experts,
    A script is triggered when i run the transaction FBL5N and a form is printed.
    The issue is, i am unable to see the chinese text in the preview as well as print.
    The chinese characters appers as ###, check boxesor some other symbols.
    Tried chaging the priner settings also(ouput device and device type)
    Tried changign the font family aslo.(CNKAI and CNHEI)
    The functional consultant says using the existing priner settings they are able to print chinese characters through some other transactions like VF03
    Waiting for positive responses.
    Regards
    Akmal

    See [note 302228 - NLS trouble shooting: printing (collective note)|http://service.sap.com/sap/support/notes/302228]: Characters on printout printed as nothing, #, ?, ., box, other character. It contains a detailed procedure how to analyze and solve. See also note 753381 which contains a Word document (attachment) with a more detailed classification of character damage.
    By the way, do you log in SAP in Chinese, do you have a Unicode system, do you use frontend printing, does your computer have Asian support installed, is the font installed on your computer?

  • Unable to print chinese characters in Smartforms use Zebra printer

    Hi,all.
    My printer is Zebra ZM400 300dpi,I created a new output device 'TestDevice' and use the Lzeb3 Device type.
    In my smartofrms i used the Zebra command to rotated text.Now the smartforms counld not print chinese characters but '#' instead.(style font 'ANDALE_S')
    Anyone could help me....
    Thanks Advance.
    Andy Lee.

    Hello Andy,
    If you use the device type LZEBU3 with font ANDALE_S, then when you print then the SAP system
    send a print control for activating the ANDALE font installed on the printer, and the text should
    be outputed over this font.
    When you get # during print then this means that the device type or the SAP font don't support
    this character(this was the original problem), when you get a "space" then this means that the
    font which is used by the printer don't support this character.
    I think this can have 2 causes in your case:
    1. The SAP system use the print control SF000 when you use ANDALE_S, which contains
    the print control ^CI17^F8 in HEX form. This should activate the ANDALE font on your printer.
    (You can find this under tr. SE73 -> Printer Fonts -> LZEBU3 -> ANDALE_S)
    You should check wheter this is the correct print control. You should find on the printer an option
    which list you all installed fonts, and also the print control which can be used for activating it.
    Compare this print control from the printer with the above print control from the SAP system.
    If you see a differnce then change the print control in the SAP system.(Before you do that please
    copy the device type LZEBU3 into customer namespace, don't change the original SAP device type)
    2. The font installed on the printer don't support the character which you use. Contact Zebra to confirm this, and ask for a ANDALE font which supports the character.
    Best regards,
    Norbert

  • Unable to printer through network

    Hi, I am currently unable to print through the wireless network.  I set up the printer yesterday, and it printed ok. The printer is a HP Office Jet Pro Preium . When I try to print I get the message "Unable to communicate with printer.  Printer unavailable or not connected".  The printer says that it is properly connected to the network.  Any ideas?

    Hi , Welcome to the HP Forums! I see that you are having trouble installing your HP Photosmart c4580 printer on Mac OS X 10.5.8. And, I am happy to help! I would recommend to try uninstalling the software again, (in case their is still some software partially installed.) Uninstall the Printer Software. And, then try resetting the print system, and verifying and then reinstall the software using this direct link.  Hope this helps!  “Please click the Thumbs up icon below to thank me for responding.”

  • Unable to Print preview Chinese & Japanese Quotes in Portal

    Hello,
    We are using smartforms to display and print the quotations from portals. We can display languages other than Chinese and Japanese from portals. Though quotations can be displayed from Wingui for chinese and japanese languages.
    For Chinese, I get an error message "There was a problem reading this document(15)" and further error is "Expected an array object" when I open the PDF and to surprise the text on scrolling vanishes. Printing works for Chinese but not all pages. Japanese PDF does display but is all gibberish.
    Any one faced this situation
    Prasad

    Hi Prasad,
    For Japanese and Chinese languages it will go through different code page.
    Please check with GUI. May check in OSS.
    Lanka

  • 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

  • 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

  • Unable to print xml publisher report in excel format in R12

    Hi All,
    We are unable to print xml publisher report in excel format in R12. We were able to see the excel output but it's printing junk characters while printing and it's printing without any issue with PDF format.
    Please let me know how to fix this issue.
    Thanks,
    Raja

    Hi Raja,
    I presume you have gone through the debugging process of testing your template locally first to get the expected result.....
    If yes, this note might probably be helpful "Changing Output Format to RTF or Excel in XML Publisher Request Does Not Display Output Correctly (Doc ID 404512.1)"
    Good Luck,
    Lamine Balde

  • Unable to print hp office jet 8500A  plus to i mac

    Cannot get printer to print wirelessly from imac.  Printer is HP officejet 8500A plus and o/s is Mavericks (10.9.3). Everything looks normal on imac but printer does not print when commanded.

    Hello wrussellfromny,
    Thanks for using Apple Support Communities.
    The following support article has steps for you to go through in order to resolve this issue of being unable to print from your iMac:
    Troubleshooting printer issues in OS X
    http://support.apple.com/kb/TS3147
    Take care,
    Alex H.

  • Unable to print to Canon iR-Adv C5045 from MacBook Pro that is connected to Windows computer and shared on the network

    I am unable to print to a Canon iR-Adv C5045 from a MacBook Pro (OS X 10.9.4) that is connected to Windows NT computer and shared on the company network.  I am connected to the network by ethernet.
    I was able to add the printer manually by going to Advanced, Windows printer via spoolss, smb://computer name/printer name and used the Canon iR-ADV C5045/5051 driver.
    When I print it appears to be printing but nothing comes out.  I checked the completed jobs from the Print Queue and the job is listed.  Checked the print log on the printer and it isn't listed.  Is there a different driver I should be using for this configuration?

    You may not have a choice as to what driver you can use. If the ADV C5045 only has the default UFR2 printer kit, then you will have to use the UFR2 driver - which is what you are using now. If you can access the copier, press the Counter Check button on the control panel. Then on the display you will see an entry labelled Check Device Configuration. Select this and scroll down through the pages. You are looking for an entry called PS. If you see it then the Canon does have the optional Postscript printer kit enabled and this will let you use an alternate driver. One suggestion would be to create the printer again using the same setting that you have done already but this time select the Generic Postscript driver included with the OS rather than use the Canon driver. This will help to determine if the driver is the cause.
    If there is no PS option you will have to use the UFR2 driver and this could be the problem, as the Canon drivers don't always work well on a Mac via a Windows share. As a test, are you able to create a print queue directly to the Canon rather than via the Windows share? If you can, then this will let you check if the driver currently installed will work, as there can be settings on the copier that can block/stop you from printing. Assuming that you can print to the Canon with a direct connection from the Mac, then we can work on getting the printing via the shared queue. But if it doesn't print directly from the Mac, then it confirms that it may not be the server and more to do with the copier.

  • Unable to print to Adobe printer in any program including Office 2010

    My sustem is a Windows 7 64 bit.  I have Office 2010 installed as well as Adobe Acrobat Pro X ver 10.1.3.  I am unable to print to the Adobe PDF printer.  If I select it in Notepad it is Greyed out.  If I select it in an Office product like Word or Excel it shows that it is READY.  However if I select it so I can print to PDF I get an error message "Word cannot print.  There is no printer installed."
    If I got to Devices and Printers Adobe PDF is listed.  If I right click on it and select "Printing Preferences"  I get an error message "Operation could not be completed."
    If I select Printer Properties I get an error message "The "Adobe PDF Converter" printer driver is not installed on this computer.  Some printer properties will not be accessible unless you install the printer driver.  Do you want to install the driver now?"
    If I click YES a wizard pops up, the Add Printer Driver Wizard.  I select Next, choose either any of the Adobe PDF Converter Versions or HAVE DISK, the NEXT.  If I select have disk I go to the proper place "C:\Program Files (x86)\Adobe\Acrobat 10\Acrobat\Xtras\AdobePDF" and select the file AdobePDF.inf.  I then select the top Adobe PDF Converter and select Next.  It says You have successfully completed the Add Printer Driver Wizard.  You are about to add "Adobe PDF Converter, x64, Type - User Mode.  I click Finish and get another error.
    This error says "Unable to install Adobe PDF Converter, Type - User Mode, x64 driver.  Operation could not be completed (error 0x00000002)."  I select OK and Adobe PDF Properties pops up.  It has tabs like General, Sharing, Ports, Advanced, Color Management & Security. I can click on any of them and make any changes but once I click on OK and close the window and then Right Click on Adobe PDF there is no change to my results.  I still get all of the above errors.
    I have tried deleting the Adobe PDF printer and then selecting in Programs & Featues (Old ADD/REMOVE) the Adobe Acrobat X Pro item and right clicking on it and the selecting Change.  It goes through almost a reinstall, it adds the Adobe Printer back but NO CHANGE.  I still can't print to Adobe PDF.
    Can someone help?

    Can you try 'Print as Image' (Advanced button on Print panel).

  • Unable to print to Canon iR 2380/2550 after upgrading to Mavericks

    Hi all,
    At work here in the UK, we upgraded our machines to Mavericks OS X 10.9 and since then have been unable to print to our office printer. The only work around we found so far was to print through Google Cloud, and only in black and white.
    I have ready a lot of posts and tried different options and advice but no joy so far.
    Any suggestions are greatly appreciated.
    Kind regards,
    George

    For anybody having the same problem, one of our IT guys found the needed driver in the Australian Canon website - seem they have a lot more clout than US and UK customers.
    Printing is now working as it should from my machine.
    Download the driver from the link below:
    http://support-au.canon.com.au/contents/AU/EN/0100491502.html

  • I am using reader 11.0.10.32 Win7 64 bit.  I am unable to print from Reader.  After selecting print all pages, the pri

    I am using reader 11.0.10.32 in Win7 Professional 64 bit.  I am unable to print from Reader.  After selecting print all pages, the progress bar goes through the proper page count. After that a pop up window appears with the message: The document could not be printed.  After pressing the OK button that pop up closes and the next pop up window appears with the message: There were no pages selected to print.  After pressing the OK button, the pop up closes and the pdf document is still visible in Reader.
    I can print from other programs to that printer.  I can print from Reader to other printers.
    I was able to print to all printers before.  I uninstalled Reader and reinstalled it from the Adobe web site.
    Any suggestions to make it print?
    Thanks.

    Answered multiple times every day: open Adobe Reader | Edit | Preferences
    under Documents, change 'View documents in PDF/A mode' to Never
    under Security (Enhanced), disable Protected Mode at startup

  • Unable to print remittance advice for certain quick payments

    Hi,
    This is regarding issue " Unable to print remittance advice for certain quick payments."
    Product version:11.5.10.2
    Description:
    -Customer has paid through the payment batch.But the payment batch data is not available in ap_inv_selection_criteria_all.
    -The status of the check is 'RECONCILLED'.
    -The payments have already been submitted to the bank and reconciled to bank statement lines.
    -While running "Send Separate Remittance Advices" concurrent program, some payments generated from Quick Payment are not available for selection for generation of remittance advice.
    Research:
    Search in the metalink but could not find any related issue.
    Could you please adivce me how to proceed on this issue.
    Thanks
    Subhalaxmi
    Edited by: user13536207 on Feb 13, 2012 12:43 AM
    Edited by: user13536207 on Feb 13, 2012 12:46 AM

    Found the problem.
    Paper size for those documents are actually A5 size.
    Solve it by adjusting the Scale to paper size in the printing option to the size that our printer is set to printout 
    which in my case is 'Letter'
    Hope this helps anyone who is encountering the same problem.

Maybe you are looking for