Chinese characters in Script

Hi SDN,
I have created a from, in that adrc-name4 is the chinese character field.
Whenever i give that field at script side in print preview and print it appears in machine code.
I checked in database also there also in the same machine code.
Please suggest me.
Thanks and regards,
Phani.

Hi Phani,
Please go throug following doc. I hope it will help you.
https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/00adf4da-76f1-2910-43aa-81ad2a67332c
Regards
Akshay

Similar Messages

  • Label printing issue with chinese characters (SAP script)

    Hi ,
    I have a requirement to print chinese characters on label print out.
    Here are the steps already tried:
    1) Created a new device type which is copy if ASCIIPRI and character set 8400
    2) Font ANDALE_S, CNHEI, CNSONG are assigned to device type, same fonts called in SAP script.
    3) During the print, it is picking ANDALE_S font(observed in spool RAW data), but preview is good.
    4) I put ZPL codes CW1,B:MSUNG.FNTFS in beginning of script and also ^A@N,50,50,B:MSUNG.FNT while prining actual chinese text in SAP script.
    5) also tried other device types assigned to printer LZEBU2, LB_ZEB2 etc.,
    6) already checked at printer DIMM level, SIMSUN, ANDALE_S fonts are already installed
    7) Character set on printer is same as in SAP
    So far no option worked, it default to Courier fonts while printing and it results garbage characters.
    If anyone has ideas, please advice.
    thank you,
    Anil

    Hi,,
    If the ZPL commands are correct for switching to the printer's internal CHinese font and character set, it may work to add the fonts via SE73 -> Printer Fonts -> ASCIIPRI . In here you need to add the commands in the print control SFxxx for your created font.
    Another possibility is to print via windows and device type CNSAPWIN. Here it should not be necessary to add any font.
    Regards,
    Aidan

  • Why a " # " is coming while printing chinese characters from SAP script?

    Hi All,
    Facing one issue.
    We have a SAP script for printing delivery note thru T-code VL03N. The script has chinese characters in it.
    When I print this form the chinese characters that are hardcoded in the script can be seen in the print out but the ones which are coming from the table cannot be seen instead they are repalced by " # ".
    Strangely, when a debug the script or see a print preview on the screen they can be seen as it is with no problem.
    Only when I print it, on the paper print they are seen as # but the characters that are hardcoded in the script can be seen clearly on paper.
    Secondly, in Transaction FB03 which is for display of list of documents it too has some chinese characters and when I print this directly from the t-code doing Shift-F1 ( no SAP script or form is involved in this case) then the same case is there the chinese characters get replaced by a " # ".
    Any inputs or views are welcome.
    Please suggest.
    Thanks.
    Cordially,
    Saurabh.

    Hi,
    You need to set your activate multibyte functions to support.
    Long on to SAP --->right side right corner (Customized local layout) --> click --->Select options --->select tab (l18N)
    -->Check Activate multibyefunctions to support.
    log off you SAP Gui then re-log in...you can able to view multi language characters.
    Thanks,
    Nelson

  • Chinese characters printing in Scripts in SAP

    Hi,
    I would like to print Chinese characters in the scripts in SAP Unicode system.
    We are trying thru SAP but unable to print. If anyone already done this please help me to solve this.
    Thanks,
    Krishna chaitanya.

    hi krishna
    there are various factors like printers, script language settings influencing printing the chinese characters.First you can try to print the hardcoded chinese characters using <b>locl</b> instead of network printers. for this u need to copy the chinese characters and paste in the script using the native login (not nesscary to login to SAP in chinese login). If this works then u need to check the printer model supported by SAP for printing double byte characters. For more information pls post this Q in SCRIPT section of SDN. Also there are couple of notes availbale for troubleshooting this issue.
    thkx
    Prabhu

  • Script having Chinese characters throws error when run from SQL PLUS

    Dear All,
    I have a script file(.sql) which contains Chinese characters ....
    I have saved the file in unicode Format.
    When I run this file using @D:\filename from SQL PLUS it throws an error "unknown Command at line 1"...
    My database is Oracle 10g...
    Can anyone suggest anything???
    Thanks In Advance
    Dev
    Edited by: Devarsh on Oct 21, 2009 8:16 AM

    I think you may need to set your local NLS_LANG setting for your client (SQL*Plus) to recognize the characters.
    You may also consider posting your question on the Globalization forum which pertains more to these types of questions.
    Globalization Support

  • Not all chinese characters display correctly with non-embedded text

    Hi all,
      I've updated to the last beta 2 of Flash Player 10.1 (10,1,51,66) and compiled this simple Flex application to illustrate the fact that not all chinese characters can be displayed correctly with non-embedded text (device font).
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                   xmlns:s="library://ns.adobe.com/flex/spark"
                   xmlns:mx="library://ns.adobe.com/flex/halo"
                   minWidth="1024" minHeight="768"
                   creationComplete="resourceManager.localeChain = ['zh_CN'];"
                   layout="{new VerticalLayout()}">           
        <fx:Script>
            <![CDATA[
                import spark.layouts.VerticalLayout;
            ]]>
        </fx:Script>
        <s:Label text="伜-伞伟传伡伢伣伤伥伦伧伨伩伪伫伬伭-伝">
        </s:Label>
        <mx:Label text="伜-伞伟传伡伢伣伤伥伦伧伨伩伪伫伬伭-伝"/>       
    </s:Application>
      Notice that characters from the Unicode range 0x4F1E .. 0x4А2D are not displayed within <s:Label> component that uses Flash Text Engine (FTE) by default to display the text, but at the same time those characters display just fine within older <mx:Label> component that relies on flash.text.TextField instance to render the text.

        OK, did not know that "Arial Unicode MS" font is only distributed with Microsoft Office, was looking into relying on this font in case if "simsun.ttc" font is not available at the user's system, by using the following:
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                   xmlns:s="library://ns.adobe.com/flex/spark"
                   xmlns:mx="library://ns.adobe.com/flex/mx"
                   minWidth="1024" minHeight="768"
                   creationComplete="resourceManager.localeChain = ['zh_CN']"
                   layout="{new VerticalLayout()}">               
        <fx:Style>
            @namespace s "library://ns.adobe.com/flex/spark";
            @namespace mx "library://ns.adobe.com/flex/halo";
            s|Label {
                fontFamily: "Arial Unicode MS, SimSun, Arial";            
        </fx:Style>   
        <fx:Script>
            <![CDATA[
                import spark.layouts.VerticalLayout;
            ]]>
        </fx:Script>
        <s:Label id="sparkLabel" text="伜-伞伟传伡伢伣伤伥伦伧伨伩伪伫伬伭-伝"/>   
    </s:Application>  
    Tough decision ahead, but accordingly to  the survey at codestyle.org (2000 participants from 2007 year and onwards), Arial Unicode MS is present at 62.53%% system surveyed.
    ps
       My current install of Windows XP already includes the install of Microsoft Office 2007 and I've also enabled/disabled the support of East Asian languages, thus the content of  my "fonts" folder differs now significantly from "clean" Windows XP install version.
    Nevertheless I found the page with comprehensive lists of standard fonts installed with different releases of Windows that looks viable here:  http://www.kayskreations.net/fonts/fonttb.html

  • Fax output - Chinese characters are garbled

    Hello,
    We are using fax output for two forms ( One smartform and the othe sap script). Both the form outputs are thorugh  the same fax device. For the smartform output there are no issues and the output is as expected but for the sap script output the chinese characters are garbled. Instead of the chinese characters i get output like _____ _______>,<%,,<< etc.
    Interestingly, if i have a look at the print preview or take print out there is no issue and the characters are as expected. The issue arises only during fax.
    Can someone help pls?
    Thanks,
    Venkat

    HI friend,
    I found few same post in SDN which are related to this Chinese characters in SAP Scripts.
    Please see this link and find is the problem is same as yours if so make use of it.
    Link: [Output of Sapscript in Chinese language|Output of Sapscript in Chinese language;
    Link: [Problem displaying Chinese Characters|Problem displaying Chinese Characters in SAP script form WESCHEINVERS1;
    I think these will be helpful please revert back to me after going through the links.
    Thanks,
    Sri Hari

  • Chinese Characters in Spool converted to Junk characters in PDF

    Hi,
    I have spool generated from Script , the Spool shows me Chinese Characters.When I am trying to convert the Spool to PDF using Program RSTXPDFT4 , the PDF contains Junk Characters instead of Chinese Characters.Please let me know how to get the correct Chinese Characters in PDF.
    Regards,
    Swathi

    Hi,
    For the spool you try to convert to PDF, which device type was this spool created by. It must be created via a Chinese device type like e.g. CNSAPWIN. The form used to create the spool must have language key ZH. The fonts used in the form for the Chinese characters must be a Chinese font like CNSONG or CNHEI.
    Alternatively, if you create the spool via Unicode deviec type SWINCF, then the font and the form language are not important. It should work to convert the spool to PDF regardless of the language ley or font used in the form.
    Regards,
    Aidan

  • Chinese characters in url

    I´ve been asked to make a chinese version of a website
    but although I can create the pages using chinese characters I
    can´t make the urls or folders in chinese.
    eg 住宿.asp
    What should I be doing ?

    "drew lawson" <[email protected]> wrote in
    message
    news:go3g6a$p7h$[email protected]..
    > I?ve been asked to make a chinese version of a website
    but although
    > I can create the pages using chinese characters I can?t
    make the
    > urls or folders in chinese.
    Most websites created in Asian languages use the Roman
    alphabet (ABC)
    for file and folder names. However, modern browsers are now
    capable of
    handling URLs in Chinese characters and other scripts. As
    long as your
    computer supports Chinese, so does Dreamweaver (unless you're
    using an
    old version). If I recall correctly, all versions since
    Dreamweaver 8
    support Asian and other scripts.
    David Powers
    Adobe Community Expert, Dreamweaver
    http://foundationphp.com

  • Chinese characters in PDF download of SAPscript

    Hi Friends,
    I'm facing an issue while downloading SAPscript output in PDF format. The chinese characters fetched from the SAP tables appear as '#' or some junk value whereas the values hardcoded in script with appropriate character formats appear absolutely fine in PDF. The values fetched from table appear fine when output is taken as normal SAPscript output.
    Can someone help me out in this regard. Helpful answers will be rewarded points.
    Thanks,
    Jaison

    CNSONG should work, I use that with Chinese PDFs.
    You're using CNPDF so that isn't the problem.
    You're Unicode which eliminates a host of other possibilities.
    And the characters print fine with non-PDF SAPScripts...
    I'm running out of ideas. It sounds like you've done everything you need to.
    What method are you using to convert this SAPScript to PDF form? CNPDF Printer, a Function Module, something else? If a FM, which one are you using?
    Could it be your Adobe Reader? Does it have the chinese language fonts loaded?

  • Chinese characters displaying as square

    Hi,
    I am trying to update a text frame with following script. It works well for all ascii but if chinese characters are entered in text, it displays them as square. I have language pack installed on Indesign machine.
    //----script starts-----
    var myDocument = app.open(File('//192.168.1.189/Clients/44/ArtBuild/Artworks/60951.indd'));
    var myTextFrame = objPage.textFrames.itemByID(tmp_frmid);
    var paragraph1 = myTextFrame.paragraphs.item(0);
    paragraph1.contents = "Hello ャンペー"
    myDocument.save('MyFile.indd');
    //-----script ends ----
    This updates indd file to display
    Hello□□□□
    What can be done so that unicode displays as it is.

    Chinese fonts are already available on Indesign Machine.
    Another related query regarding special charcters is:
    If the above file doesn't have chinese characters but some special characters, then
    1. if I copy the script and execute it in ExtendTool script, it properly updates the indd with special characters specified
    2. If I call IndesignServer webservice by passing path of same script file, it updates indd file with junk characters.
    Wonder, what difference it makes when script is executed through indesign webservice and not ExtendToolscript

  • Chinese Characters Printing as Boxes in SAPscript

    Issue...why would a Chinese standard text print fine using the "INCLUDE" method, but output as boxes when that same Chinese standard text is retrieved successfully using the "PERFORM" method?
    Summary...I am currently experiencing problems printing Chinese characters on a custom SAP Script form. This does not appear to be an issue with printer setup or font selection, as I am able to get the Chinese characters to appear depending on the method I use. The problem occurs when I execute a "PERFORM" within the SAP script to retrieve the Chinese standard text, the results are displayed as boxes. If I "INCLUDE" the standard text directly within the SAP script, the Chinese standard text prints without issue. I have executed the SAP script in debug mode and the Chinese text is being retrieved from the "PERFORM" statement as expected, but just does not display correctly as it does by using the "INCLUDE" approach. I'm trying to understand why the two approaches would not both work in the same manner. We are on a UNICODE system.
    Though we may be able to use the "INCLUDE" method in a majority of places, we are interested in using the function "ADDRESS_INTO_PRINTFORM" for printing addresses. This would require passing values back to the SAP script line by line.
    Below is a simplified version of the two methods...
    (PRINTS CHINESE CHARACTERS AS EXPECTED)
    INCLUDE 'ZADDRESS_LINE1' OBJECT 'TEXT' ID 'ST' LANGUAGE &NAST-SPRAS& PARAGRAPH IG
    (RESULTS IN BOXES BEING PRINTED)
    PERFROM GET_TEXT IN PROGRAM ZGET_CHINESE_TEXT
    USING &NAST-SPRAS&
    CHANGING &ADDRESS_LINE1&
    ENDPERFORM.
    &ADDRESS_LINE1&
    (&ADDRESS_LINE1& contains Chinese characters as expected when debugging SAP script)
    FORM GET_TEXT TABLE PT_IN STRUCTURE ITCSY
    PT_OUT STRUCTURE ITCSY
    ...USE FUNCTION 'READ_TEXT' TO RETRIEVE CHINESE TEXT FROM ZADDRESS_LINE1 STANDARD TEXT (works as expected)
    read table pt_out index 1.
    move ADDRESS_LINE1 to pt_out-value.
    modify pt_out index 1.
    (PT_OUT table is populated with chinese text as expected)
    ENDFORM.

    Language for form is 'ZH'.
    To clarify the original post, the standard text is being retrieved correctly for both methods.  By this I mean that during debugging of the SAP script I can see the Chinese text as expected for both methods.  However, during print preview only the "INCLUDE" method displays correctly.  I have both methods included in my current script for the same standard text and the "INCLUDE" displays fine, but not the "PERFORM" method.
    Does the "CHANGING" parameter which is populated by the "PERFORM" need to be defined in a particular way?  Might there an issue with the TDSYMVALUE type that is used for storing the values retrieved from the "PERFORM"?

  • ExternalInterface not returning chinese characters

    I've got a Flex application embedded in a PDF.  Also in that PDF is a field (hidden text field) called Data containing XML that happens to contain chinese characters.  The encoding for the XML data is UTF-16. To retrieve the data, I make a JS call (getData) using ExternalInterface.  The JS is simple:
    function getData()
      var data = this.getField('Data').value;
      return data;
    I also inserted before the return an alert to display the data.  The chinese characters were present and displaying as expected:
    In my flex application I make the following call:
    var resultXML:XML = XML(ExternalInterface.call("getData"));
    However, the resulting XML appears to not be read as UTF-16, and the characters displayed look like:
    Is there something special I have to do to get the chinese characters correctly passed through from the ExternalInterface call?

        OK, did not know that "Arial Unicode MS" font is only distributed with Microsoft Office, was looking into relying on this font in case if "simsun.ttc" font is not available at the user's system, by using the following:
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                   xmlns:s="library://ns.adobe.com/flex/spark"
                   xmlns:mx="library://ns.adobe.com/flex/mx"
                   minWidth="1024" minHeight="768"
                   creationComplete="resourceManager.localeChain = ['zh_CN']"
                   layout="{new VerticalLayout()}">               
        <fx:Style>
            @namespace s "library://ns.adobe.com/flex/spark";
            @namespace mx "library://ns.adobe.com/flex/halo";
            s|Label {
                fontFamily: "Arial Unicode MS, SimSun, Arial";            
        </fx:Style>   
        <fx:Script>
            <![CDATA[
                import spark.layouts.VerticalLayout;
            ]]>
        </fx:Script>
        <s:Label id="sparkLabel" text="伜-伞伟传伡伢伣伤伥伦伧伨伩伪伫伬伭-伝"/>   
    </s:Application>  
    Tough decision ahead, but accordingly to  the survey at codestyle.org (2000 participants from 2007 year and onwards), Arial Unicode MS is present at 62.53%% system surveyed.
    ps
       My current install of Windows XP already includes the install of Microsoft Office 2007 and I've also enabled/disabled the support of East Asian languages, thus the content of  my "fonts" folder differs now significantly from "clean" Windows XP install version.
    Nevertheless I found the page with comprehensive lists of standard fonts installed with different releases of Windows that looks viable here:  http://www.kayskreations.net/fonts/fonttb.html

  • Reg : Pull Chinese characters into XLS

    Hi Experts,
    I have to generate a report by pulling from tables to an Excel sheet.
    But i'm getting the Chinese characters as junk.
    FYI - I'm using PERL script for this report generation.
    Any idea regarding this ?
    TIA.
    Best Regards,
    Ranit B.

    ranitB wrote:
    Hi Experts,
    I have to generate a report by pulling from tables to an Excel sheet.
    But i'm getting the Chinese characters as junk.
    FYI - I'm using PERL script for this report generation.
    Any idea regarding this ?
    TIA.
    Best Regards,
    Ranit B.is problem a data storage issue or data presentation issue?
    SELECT ASCIISTR(CHINESE_COL) FROM YOUR_TABLE WHERE ID = 1;

  • 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?

Maybe you are looking for