Chinese Characters in output file

Hi All,
We have recently made our SAP Unicode compliant. Now user started entering customer name in Chinese language. We have program to extract customer name.
If I use following, then output file contains hash (#)
OPEN DATASET file_name FOR OUTPUT IN TEXT MODE ENCODING NON-UNICODE  MESSAGE l_message IGNORING CONVERSION ERRORS.
If I use following, then output file shows Chinese character but record alignment gets disturbed.
OPEN DATASET file_name FOR OUTPUT IN TEXT MODE ENCODING DEFAULT
MESSAGE l_message IGNORING CONVERSION ERRORS.
Thanks
We are flexible to open file in both mode

Hi,
     Refer it may useful for you.
https://forums.sdn.sap.com/click.jspa?searchID=4155531&messageID=2916685
https://forums.sdn.sap.com/click.jspa?searchID=4155593&messageID=2530886
Regards

Similar Messages

  • English and Chinese characters in a FIle

    Hi,
    I need to read a file from application server and create a idoc with that data. But, the File may sometime contain a mix of English and Chinese Characters as below.
    File at application server is as below format:
    #####û´##û³##úÊ##þÎñÓ#######MR###õ###########ø°####ò²#####7588##7590##200000
    The file has six fix fields separated by ''. But when I move these fields in six variables, in 4th variable the value comes as '#õ###########ø°####ò²#####7588##7590##' instead of only '#õ' (it takes value of 5th variable also) and then the rest of fields get misplaced.
    Any idea about this problem?
    Please note that My system in SAP 4.6.
    Thanks.

    Hi..
    Probably  is caused by the 2bytes consume of chinese characters, have you tried to temporarly delete those chinese characters from the input data and see what happen?..
    Hope to help...

  • Chinese character in PDF output file ?

    I have trouble to display Chinese characters (traditional Chinese) on PDF output file. Is there anyone can help ?

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Rene Kello ([email protected]):
    From 'Reports 6i Release Notes'...
    Reports supports PDF 1.1.
    The Adobe Acrobat Reader cannot read .PDF report files generated by Report Builder if the report contains certain types of non- English character set languages (typically multi-byte) or Unicode character set.
    Same with reports 6.
    Install Acrobat Reader 4.X. Print to Acrobat Distiller printer. Works for Baltics.
    cheers,
    Rene.<HR></BLOCKQUOTE>
    It works ! Thank you !

  • Chinese Characters in ABAP Mapping

    Hi All,
      I have one problem with chinese characters in ABAP Mapping. Actually there is an ABAP Mapping written in XI which converts IDoc to Idoc Flat file which is provided by SAP and is in the below link.
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/46759682-0401-0010-1791-bd1972bc0b8a
    Chinese characters are properly coming to XI but after this ABAP mapping those characters are being replaced with #. Any idea on this pelase?
    Regards,
    Dinakar

    Hi !
    Check this thread:
    Unable to get Chinese Characters as output.
    Regards,
    Matias
    ps:please award points if helpful.

  • Chinese characters in filename

    After uploading a file in CV01N with Chinese characters in the filename, it cannot be subsequently opened in CV02N/3N. We get system message 26136 - File C:\xxxxx could not be accessed.
    I can copy the file to my PC and open from there. When I do this the Chinese characters in the file name are converted to '#'.
    Does anyone what I can do to open the file directly from CV02N/3N?
    We are on ECC6, EHP6, SP12 and are Unicode compliant.

    Hello Dean,
    To be able to use Chinese characters in a file name system locale (i.e. the character set which matches the language of the system locale) must be set to Chinese as well.
    Otherwise the characters cannot be processed properly (EN system locale does not know Chinese characters). Hope this helps. The best solution would certainly be to avoid non-ASCII
    characters in file names on EN operating systems.
    Best regards,
    Yuki

  • Writing chinese character into a file

    Hi,
    I need to write chinese characters into a file,I used FileOutputStream, using the method write(byte[] b)...
    whereby I will convert the chinese word into bytes....
    but it couldn't work...
    Please Help!!

    you can write the unicode hex string (e.g. 606D559C53D18D22 for Gong Xi Fa Chai) into a text file by using the following code
              PrintWriter out2 = new PrintWriter(new BufferedWriter(new OutputStreamWriter(new FileOutputStream("chinese_out.txt", false), "UTF-8")));
                   int countChineseChar = chineseHex.length()/4;
                   int index = 0;
                   String c = "";
                   int b;
                   for(int i=0; i<countChineseChar-1; i++)
                        c = new String(chineseHex.substring(index, index+4));
                        b = Integer.parseInt(c, 16);
                        out2.write(b);
                        index+=4;
    Note that the OutputStreamWriter uses the UTF-8 to encode the unicode hex. I'm assuming that the hex is fixed at 4 digits each character
    syam

  • UNICODE Issue With Chinese Characters

    Dear Experts,
    I have chinese characters in my data. I want to downlaod this data on front end as ANSI file type and the chinese data should be convertable.
    Am able to download using 4120 unicode in gui-downalod. but am not getting fiel format of ANSI if I have chinese characters in my file.
    Please hep me.
    Thanks in Advance.
    Kiran.

    Hi
    You can get the code page of a language using function module NLS_GET_FRONTEND_CP.
    Import parameters               Value
    LANGU                          CH
    FETYPE                          MS
    Export parameters               Value
    FRONTEND_CODEPAGE               1160
    Then pass the code to you program and try.
    Shiva

  • Error in opening a file with name in chinese characters with Runtime.exec

    The issue at hand is when I try to open a file with file name containing chinese characters in a localized environment in Windows through the following java code:
    Runtime.exec("rundll32 SHELL32.DLL,ShellExec_RunDLL {File_With_FileName_containing_Chinese_character}");
    the following error is thrown by windows.
    Cannot open file "C:\??.txt".
    with the exception
    java.io.IOException: CreateProcess: [Ljava.lang.String;@f5da06 error=2
            at java.lang.Win32Process.create(Native Method)
            at java.lang.Win32Process.<init>(Win32Process.java:66)
            at java.lang.Runtime.execInternal(Native Method)
            at java.lang.Runtime.exec(Runtime.java:566)
            at java.lang.Runtime.exec(Runtime.java:428)
            at java.lang.Runtime.exec(Runtime.java:364)
            at java.lang.Runtime.exec(Runtime.java:326)
            at Launcher.main(Launcher.java:26)
    When I try to use the same command (shown below) from the Windows Run command, the file opens sucessfully
    rundll32 SHELL32.DLL,ShellExec_RunDLL {File_With_FileName_containing_Chinese_character}
    Please suggest.
    Thanks in advance

    This may be a file association problem.  To solve that:
    In Windows 7:
    1. Right-click the file,
    2. Select "Open With" 
    select [Your Program Here]
    3. Check always use this program. 
    In Windows XP:
    1. Locate the file as you have described above
    2. Right click the file
    3. Select Open with from the pop-up menu
    4. Click Choose default program…
    5. Select Excel in the Recommended Programs box
    6. Check Always use the selected program to open this kind of file
    7. Click on OK.
    1.  Make Excel not available from Office 2007 listed under Programs and Features in Control Panel.
    2. Take a registry backup using the steps given here
    3. In the registry editor window expand HKEY_CLASSES_ROOT and navigate to .xls right and delete it.
    4. Exit Registry Editor
    5. Undo Step 1 to make Excel available.
    6.  Restart the computer and verify it the issue is fixed.
    If this answer solves your problem, please check Mark as Answered. If this answer helps, please click the Vote as Helpful button. Cheers, Shane Devenshire

  • Unable to read chinese characters in a flat file to external table

    Hi All,
    We have a flat file containing data in chinese. We are using external table to read data in files. When i do select <coulmn-name> from <table> it displays box for the chinese characters. The column is of type varchar2.
    The NLS_LANGUAGE is AMERICAN and NLS_CHARACTERSET is AL32UTF8.
    The character set is mentioed as UTF8 in external table defnition.
    Is the external table not reading these charcters properly? Should any patch be installed or some settings should be changed for sql developer to to display chinese character?

    The NLS_LANG environment variable/registry string variable (You are just one of the 1000s of 'anonymous' users refusing to post platform and version), so NOT NLS_LANGUAGE, on the server hosting the file, should be set to anything ending in .AL32UTF8
    Sybrand Bakker
    Senior Oracle DBA

  • Output File : German Characters are not coming

    Hi All,
    In my output file german characters are not showing. All the german Symbols are coming as '?'.
    Is there any way to get that?
    Regards,
    Sridhar

    Hi,
    Change the encoding in your File adapter to <b>ISO-8859-1</b>
    In the receiver file adapter --> File Encoding.
    http://help.sap.com/saphelp_nw04/helpdata/en/bc/bb79d6061007419a081e58cbeaaf28/content.htm
    Regards,
    Bhavesh

  • 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

  • Exporting InDesign files to PDF containing Chinese characters

    When I export a file from Adobe InDesign to PDF that contains Chinese characters, some of the Chineset text in the resultant PDF appears heavy and blotchy, like it has had a very heavy stroke applied to it, even though the text is perfectly OK in the source InDesign file and when printed out from the PDF.
    As a lot of Chinese reader will view and read this document online, I need to find a solution, can anyone help me?

    Below is a screenshot of one of the effected pages
    As you can see, some of the Chinese characters appear all heavy and blotch, whilst others are OK.
    There is no leading on any of the text and it is perfectly OK when viewed in the Adobe InDesign file.

  • Export to flat file with unicode (chinese) characters??

    I have an SSIS (2013) package that needs to send an email notification with query results (via attachment). I have a data flow task with a source sql query that gathers 2 columns - ID and NAME. ID is varchar, NAME is nvarchar (some records have Chinese symbols).
    The destination is a .txt file. When I copy/paste a field w/ Chinese symbols to a .txt file, it shows up fine, so i know Notepad can handle the characters. I also have the .txt file set to Unicode encoding (I also tried ANSI originally). When I run the package,
    it says that it successfully moves 50 fields to the flat file. However, when I open the flat file, I see that it shows 10 records. It stops when it gets to the record with a Chinese symbol in it...but doesn't produce an error. My plan was to then take the
    attachment and use it in a Send Mail task. (i have the smtp/mail notification working fine...just need to figure out how to get the data to all export to the flat file correctly)
    Does anyone know how I can get the ID and NAME fields from a query into an email notification (either as an attachment, or even formatted nicely (with tabs) in an email would work).

    Hi,
    Based on my test, I can reproduce the similar issue in my environment. When we create the Flat File Connection Manager with the default settings, the data in flat file stops when goes to the Chinese characters.
    To fix the issue that makes the Chinese characters to actually get written into the flat file, we should check the Unicode checkbox on the right hand side of Locale property in Flat File Connection Manager. In this way, the flat file can display Chinese
    characters.
    The following screenshot is for your reference:
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Characters missing in output file?

    Hi all,
    In the below code I am not able to see the characters from 500 onwards in output file. What might be the reaon?
    PARAMETERS:P_OUTPUT  type rsfillst-dirname
               DEFAULT TEXT-001 lower case.
    data:vtext(900) type c.
    start-of-selection.
    vtext+0(5) = 'abcde'.
    vtext+100(5) = '1bcde'.
    vtext+200(5) = '2bcde'.
    vtext+300(5) = '3bcde'.
    vtext+400(5) = '4bcde'.
    vtext+700(5) = '7bcde'.
    vtext+895(5) = '9bcde'.
    OPEN DATASET P_OUTPUT FOR OUTPUT in text mode encoding default.
    TRANSFER vtext TO P_OUTPUT.
    CLOSE DATASET P_OUTPUT.
    IF SY-SUBRC = 0.
       WRITE:/ 'ok'.
    ELSE.
    WRITE:/ 'FAIL'.
    ENDIF.
    I can see only characters till '4bcde' in output file.
    Please help.
    Thanks,
    Subba

    Hi,
    You can view upto 512 character in the output.
    Check out the PROGRAM statement of Program PROGRAM rswatch0 (Transaction AL11). 
    PROGRAM rswatch0 MESSAGE-ID s1 NO STANDARD PAGE HEADING LINE-SIZE 512.
    Thats the reason why u can see more that 512 characters.
    You can download the data to ur internal table and check that data is still there.
    Reward points if helpful.

  • Output chinese character to CSV file in UNIX

    Hi
    I encountered ABAP dump whenever output chinese character to CSV file in UNIX in ECC6. Error show as
    "At the conversion of a text from codepage '4102' to codepage '1100':
    - a character was found that cannot be displayed in one of the two
    codepages;
    - or it was detected that this conversion is not supported"
    The program with coding of statement OPEN DATASET xxxxx FOR OUTPUT IN TEXT MODE  ENCODING NON-UNICODE. Reason to output to OPEN statement to non-unicode as users would like to open the csv file thru Excel directly. They do not wish to open the text file in Excel. Can Experts please share with me how to overcome the problem?
    Thanks
    Kang Ring

    May be you could give a try with the following code and check
    OPEN DATASET xxxxx FOR OUTPUT IN TEXT MODE ENCODING NON-UNICODE CODEPAGE '4103'.
    Vikranth

Maybe you are looking for

  • Disappointed with maps, will google maps be available in the App Store?

    I was really looking forward to the new maps but am very disappointed. Don't get me wrong the 3D maps are great, but so far in the UK I can only find London with this function. But this isn't my gripe. It's the view in standard mode, none of the road

  • Photoshop CS5 Printing problems on Canon MP620 - why is Quality & Media crossed out?

    Hi I used to print from Photoshop CS3 on my Macbook Pro 10.5.8 Intel to my Canon MP620 with no problem. Now with CS5 when I press Print Setting the options for Quality & Media (where you select paper type etc.) and the menu options below it are all c

  • JTable looses selection

    Hi all, I am working with JDeveloper 9.0.3 and SuSE Linux 8.1. I used jTableName.setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION); to make multiple selections in my JTable possible. This works. But the JTable looses its selection when

  • Elements 10 Error: d:\pre\mediacore\mediafoundation\api\inc\Keyframe/Keyframe.h-142

    Hi all, have spent my hole day at my brother but still no idea what this error could be. After having this project in APE 8.0 and editing it now with the newly bougt Verion 10.0, everything was fine... Opened and saved it several time but today there

  • How to create UCCE CTI Toolkit Custom Reason Codes

    Hi, I am wondering about how to create UCCE Custom Reason Codes for CTI Toolkit. Do we have to assign text to the values which comes from the registry in CTI OS Server? Quote from: CTI OS System Manager Guide for Cisco Unified ICM/Contact Center Ente