Downloading chinese character

I am downloading vendor names using dataset.
Sap is non unicode. I am loggin on in english language (EN)
In the program i am writing open dataset encoding UTF-8.
But the vendor names in chinese doesnot download in correct format.
What do i need to do?

When you download in Excel, the character formats are taken from the Front end, besure that the chinese font is installed in your system, i.e. you OS should support the lanagugae format you are downloading to.
<b>better that u contect ur basis peson to solve ur problem...</b>

Similar Messages

  • GUI Download Chinese Character to Excel gibberish character

    Hi Experts,
    I'm facing a problem where I'm using FM gui_download to save Chinese Character into Excel file.
    Upon double click to open the excel file, funny character shows up.
    But if I were to open the same file using a blank Ms Excel application (Go to File->Open->choose file),
    Excel will prompt me to select a proper encoding (GB2312 in this case), and the Chinese character can be seen thereafter.
    But, my user doesn't want to go through this.
    I've browsed through the forum and someone has posted about this before and it's unanswered.
    How to download the chinese character using GUI_DOWNLOAD - unanswered
    And, Re: GUI_DOWNLOAD give 2 bytes for each chinese character - I need fixed len which is not related to my problem.
    Below is my code:
    DATA: lv_codepage   TYPE cpcodepage,
            lv_char_cpage TYPE abap_encod,
            lv_encoding   TYPE abap_encod.
    Get Code Page for Chinese Character Spras = '1' or 'ZH'
      CALL FUNCTION 'NLS_GET_FRONTEND_CP'
        EXPORTING
          langu                 = '1'   " Chinese Simplified Table T002
          fetype                = 'MS'  " Manufacturer is Microsoft Table TCP05
        IMPORTING
          frontend_codepage     = lv_codepage
        EXCEPTIONS
          illegal_syst_codepage = 1
          no_frontend_cp_found  = 2
          internal_or_db_error  = 3
          OTHERS                = 4.
    Conversion c(4) = n(10)
      lv_char_cpage = lv_codepage.
      CALL FUNCTION 'GUI_DOWNLOAD'
        EXPORTING
          filename                = p_file
          filetype                = 'DAT'                       "tried ASC and not working as well
          codepage                = lv_char_cpage   "8404 in this case tried 8400 and same result
          replacement             = '#'
          write_field_separator   = 'X'
        TABLES
          data_tab                = i_data_cnvr        "table content
          fieldnames              = i_data_head      "table header
    Please help. Does this has something to do with utf-8 encoding?
    Thank you.
    Thanks,
    ZY See

    Hi Nitesh,
    Is there a way to check the Excel codepage? Do you mean by codepage = 936 for GB2312 encoding?
    Anyway, this issue is fixed. Issue is related to unicode system.
    Below codes for gui_download solved the problem.
    CALL FUNCTION 'GUI_DOWNLOAD'
        EXPORTING
          filename                = p_file
          filetype                = 'DAT'
          codepage                = '4103'
          replacement             = '#'
          write_field_separator   = 'X'
          write_bom               = 'X'
        TABLES
          data_tab                = i_data_cnvr
          fieldnames              = i_data_head
    Codepage = 4103 for utf-16 Unicode system.
    Write-bom = 'X' to write Byte-Order-Mark.
    Thanks,
    ZY See

  • How to download the chinese character using GUI_DOWNLOAD

    How to download the chinese character using GUI_DOWNLOAD from SAP 4.6c

    Hi,
       Make sure that the chinese font is installed in your system, because when you download in excel, the character formats are taken from the Frontend.  For detail see the below thread.
    [link1|Re: Download Chinese character]
    Thanks,
    Asit Purbey.

  • Download data from db to CSV file and need to handle chinese character

    Hi , all , I need to write to alow to export data from db to csv file, now the problem is some column is chinese character, in both db and web page it can dispaly the chinese, but in Csv I can't display chinese character, what should I do?
    Thnak you

    HJava wrote:
    I already have res.setCharacterEncoding("UTF-8"); in my servlet, and db
    req.setCharacterEncoding("UTF-8");
    Are you sure that you have set it on the response? You do not need to set it on the request. Have you read the article? Do you understand the world of characters? It look like you still don't understand it.
    by the way, since csv is text file , how can I bold my University number??? in sb = new StringBuffer();
    sb.append("University Number");Not possible with CSV since it is text/plain. Use real XLS if you want to add formatting to cells.

  • GUI_DOWNLOAD give 2 bytes for each chinese character - I need fixed length

    Due to the Unicode system takes each Chinese character as a byte, the field(10) can take 10 Chinese Characters, not like before only 5 characters allowed.
    The problem is when the data is downloaded to a txt file. Some records contains only Western Europe charactes and will fill 10 bytes in the output file and other records contains only Chinese characters and will fill up 20 bytes in the output file.
    The data is exported for a system that can upload chinese characters, but only allow fixed record length file (always 10 bytes).
    In other words: the records with Western Europe characters should contain 10 characters = 10 bytes but the records with Chinese characters should only contain 5 characters = 10 bytes.
    Anyone who can solve this, thanks in advance.
    My code:
      CALL METHOD CL_GUI_FRONTEND_SERVICES=>GUI_DOWNLOAD
        EXPORTING
          FILENAME                = p_file
          CONFIRM_OVERWRITE       = 'X'
          codepage                = '8400' "Chinese
        CHANGING
          DATA_TAB                = it_output
        EXCEPTIONS

    Hi Thomas,
    Now I understand.
    Pl. check the class CL_ABAP_CONV_X2X_CE.
    May it can help u.
    Here is it's documentation.
    CL CL_ABAP_CONV_X2X_CE
    Short Text
    Code Page and Endian Conversion Between External Formats
    Functionality
    Instances of the class CL_ABAP_CONV_X2X_CE allow you to convert text data between different character sets and numeric data between different number formats (byte order).
    Using the class corresponds to transforming data from a binary input stream to a binary output stream: The data objects are read from the input buffer sequentially and written to an output buffer.
    The class methods are normally used as follows:
    CL_ABAP_CONV_X2X_CE=>CREATE
    This creates a conversion instance. Among other options, you can specify the following as parameters: The input buffer (that is the binary string that contains the data to be read), the character format at used in the input buffer, the byte order used in the input buffer, the character format to be used in the output buffer, or the byte order to be used in the output buffer.
    CONVERT_C, CONVERT_...
    This converts the data. Calling this method several times consecutively allows you to read data from the input buffer sequentially and add it to the end of the output buffer.
    GET_OUT_BUFFER
    This gets the output buffer, making it available for further processing (such as writing to a file, sending using RFC).
    RESET
    This allows you to reset individual attributes of the conversion instance. (This method is especially designed for restarting on a new input buffer and deleting the output buffer while retaining the remaining attributes.)
    Relationships
    CL_ABAP_CONV_IN_CE
    Converting Binary Data into ABAP Data Objects
    CL_ABAP_CONV_OUT_CE
    Converting ABAP Data Objects to a  Binary Format.
    CL_ABAP_CHAR_UTILITIES
    Various Attributes and Methods for Character Sets and Byte Order
    Example
    In the following example, UTF-8 texts are converted to the codepage 1100 (Latin-1) and numbers are converted from little-endian to big-endian format:
    DATA:
      in_buffer TYPE XSTRING,
      out_buffer TYPE XSTRING,
      conv TYPE REF TO cl_abap_conv_x2x_ce.
    in_buffer = '414220C3B602010000'.
    conv = cl_abap_conv_x2x_ce=>create(
             in_encoding = 'UTF-8'
             in_endian = 'L'
             out_encoding = '1100'
             out_endian = 'B'
             input = in_buffer
    CALL METHOD conv->convert_c( n = 5 ).
    CALL METHOD conv->convert_i( ).
    out_buffer = conv->get_out_buffer( ).
    The content of the in_buffer variable is made up of  5 bytes (hexadecimal "414220C3B6"), which represent 4 UTF-8 characters (A, B, SPACE, o-Umlaut), and 4 bytes (hexadecimal "02010000"),  which represent the value 258 in little-endian format. This data is converted and the out_buffer variable now contains the hexadecimal string "414220F600000102". It is made up of:
    4 bytes (hexadecimal "414220F6"), which represent the above  4 characters in codepage 1100 (ISO-8859-1). Note that the length specification n = 5 refers to the number of elementary characters to be converted. For multi-byte codepages like UTF-8 this means that the multi-byte character "C3B6" is counted in length 2.
    4 Bytes (hexadecimal "00000102"), which represent the value 258 in big-endian format.
    If you have the desired byte order in the old format as expected by TRANSLATE ... NUMBER FORMAT (as an N(4) value), you can proceed as follows:
    TYPE-POOLS: ABAP.
    CLASS cl_abap_char_utilities DEFINITION LOAD.
    DATA:
      in_number_format(4) TYPE N VALUE '0101',
      out_number_format(4) TYPE N VALUE '0000'.
    DATA:
      in_endian TYPE ABAP_ENDIAN,
      out_endian TYPE ABAP_ENDIAN,
      conv TYPE REF TO cl_abap_conv_x2x_ce..
    in_endian  = cl_abap_char_utilities=>number_format_to_endian(
                   in_number_format
    out_endian = cl_abap_char_utilities=>number_format_to_endian(
                   out_number_format
    conv = cl_abap_conv_x2x_ce=>create(
             in_encoding = 'UTF-8'
             in_endian = in_endian
             out_encoding = '1100'
             out_endian = out_endian
             input = in_buffer
    Notes
    For details refer to the documentation for the individual methods.
    Regards,
    Joy.

  • Some of Chinese character is not displaying correctly in PDF output

    Hi all
    I'm involved in the 1st Peoplesoft project in Korea and having a difficulty with displaying Chinese character in PDF output.
    Usually Koreans can translate their name in Chinese and that Chinese name is displayed in personal information in their company as well as Korean name.
    With Oracle BI Publisher I made rtf template that includes employees' Chinese name and tried to export to PDF output.
    Most of Chinese character was fine but '李' character that was ok in HTM output was crashed in PDF output.
    So I researched and tested some solutions.
    Here's what I did.
    I downloaded and installed five fonts(ALBANWTS.ttf, ALBANWTT.ttf, ALBANWT.ttf, ALBANWTK.ttf, ALBANWTJ.ttf) in client machine(c:\windows\fonts\) and did mapping job with xdo.cfg configuration file.
    After that I previewed PDF output in the rtf template and checked embeded fonts in the PDF file.
    I can see the newly installed font was embeded but still '李' character is crashed.
    My problem is little bit different from others becuase only one Chinese character is crashed by for now.
    The Chinese character '李' is very common last name in Korea and I believe Simplified Chinese character font have in it.
    Please let me know if you have any solutions or experiance.
    Thanks and best regards
    Kwangbock.

    Hi James
    Oh~ It perfectly works!!
    I've been tried to solve this problem for a long time and
    I really appreciate for your help~
    Thanks~
    Kwangbock.

  • 'FTP_R3_TO_SERVER'  Chinese Character display as u2018#u2019

    I want to upload a *.txt which was saved as unicode .
    I use the following code to upload file to FTP server:
    call function 'FTP_R3_TO_SERVER'
      exporting
         handle = p_handle
         fname = p_filename
         character_mode = 'X'
      tables
         text = i_file
      exceptions
         tcpip_error = 1
         command_error = 2
         data_error = 3
        others = 4.
    But after upload, I find all Chinese Character display as u2018#u2019. 
    By the way, I use ECC6.0 to do development.
    How can I let the Chinese display correctly?

    Hi
    Try the following:
    1) Changes in the GUI settings. for this:
    a) go to SAP LOGON PAD.
    b) select your server -> change item.
    c) Go to Advanced.
    d) On the next screen the default selection under the section u2018Encoding for up- and download is u2018Default- ANSI u2013for Unicode Systemsu2019
    e) Please change this to u2018Default- UTF8 u2013for Unicode Systemsu2019
    f) Click on OK and save. Then logout from the system if you were already logged in. The login again for settings to take effect.
    Hope it'll help you.
    Regards
    Rishika bawa

  • Chinese Character

    I am a new user of Blackberry 8300, actually the handheld was a gift from my colleague which she
    bought in Europe, I have chosen the mobile/internet service from Hutchison 3 company for both
    mobile phone and e-mail connection, everything is working properly except the e-mail description
    cannot be displayed or shown in Chinese Character, I've been seeking for the help of the Hutchison
    people as well as download the relevant softwear, follow the guideline of the installation process, the
    situation remained the same, the Chinese Character still displayed in black square dots.
    The question is, if the hand held was not from the local dealer, it cannot be changed to Chinese language?
    Second is, where can I find the software installation or hand held modification for Chinese version.
    Third, I found the new Blackberry 3G hend held on some websites and magazines, when you are going to
    launch theses models?
    Thanks!
    Kenneth. (Kmcchan)

    americangothic wrote:
    How I am going to install this is still a mystery as I have no idea how any of this BB software works.
    http://supportforums.blackberry.com/t5/BlackBerry-Device-Software/How-To-Reload-Your-Operating-Syste...
    The search box on top-right of this page is your true friend, and the public Knowledge Base too:

  • Display Chinese character in iText

    hi all I need to display Chinese character in my pdf file
    I have iTextAsian.jar on my libraries , but the Chinese character did not show up
    nested1.addCell(new Phrase(chinessname));

    I download freetype-2.1.10,
    and I get ./configure --enable-static
    ./configure: make: not found
    how to continue ... inorder to create your owner font
    by the way I download the new extrajars-2.1.zip, this new jar supporting Chinese characters . but my first font is not working second font is work fine I don't know why?
    first one
    BaseFont bfChinese = BaseFont.createFont("STSong-Light", "UniGB-UCS2-H", BaseFont.NOT_EMBEDDED); not working
    //second one
    BaseFont bfChinese= BaseFont.createFont("MSungStd-Light", "UniCNS-UCS2-H", BaseFont.NOT_EMBEDDED);
    Thank you!

  • Chinese Character display issue on Coldfusion 10

    My Company using Coldfusion to built an report platform and recently I upgrade our Coldfusion 7MX with Windows Server 2003 to Coldfusion 10 Enterprise with Windosw Server 2008 R2.
    I copy the Code from the Old server to the new one, but I met the problem I couldn’t solve.
    We have a repost that can enter, modify and view our SRM that has Chinese Character display request. Chinese character was display without problem when the system in the old server. which look like following.
    once I move the code into the new server, I got the problem with Chinese Character as following.
    This report pulling the data from SQL2005 with Windows Server 2003 R2.
    Coldfusion code code was same and both version is access to the same database.
    I ran all of the update included to install the windows MUI for Chinese character into the new server,  but I still can't get the character display correctly.
    I can view the chinese character website without issue but only to display in the report.
    I contact with Microsoft tech support but they don't have an solution for me. please help.

    Install windows server language pack:  http://www.microsoft.com/en-us/download/details.aspx?id=12250
    Are you sure the Chinese is encoded in UTF-8?  (It should be, but you should check the database field type encoding.)  If it's simplified chinese it could be set to GB18030 and if it's traditional chinese it could be Big5.
    You might want to leave off the encoding directive in CF and load the page in a browser then change encodings using tools > encodings  to see what works.
    祝你好运!

  • Mapbuilder cannot display chinese character properly

    I downloaded the latest mapviewer package.I found the mapbuilder cannot display chinese charater properly.neither the charater readed from database,nor the charater I typed. Every chinese character is substitude by a blank square.Anyone have good suggestion?

    Hi,
    this early preview has not been tested in other
    languages than English. We are aware of this problem
    with Chinese characters, and it may be related with
    font, but
    needs more investigation. Which Windows version are
    you using?
    To start the program setting the language to English
    you can try:
    java -jar -Duser.language=en -Duser.region=US ...
    Thanks.
    JoaoI tried . but no helpful. an My os is windows xp

  • Reg: Chinese Character

    Hi All,
    I want to write a select query where I am passing unicode character and comparing with the Chinese characters in the table. So it is not giving me the correct response.
    I want to convert the unicode character to chinese character before comparing,
    eg : Select * from CHINA where NAME='&#26143';
    This is not working so I tried the below,
    Select * from CHINA where NAME=UNISTR('&#26143');
    But this is also not working. In my table the data is like ' 星洲’ (Chinese Characters).
    Can anyone help on this??
    Thanks in Advance,
    Rajeev R.

    What kind of encoding is '&#26143'? UNISTR requires a '\' in front of a unicode character:
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/functions204.htm
    By the way you better ask this kind of questions in the Globalization Support Forum .
    Werner

  • Convert chinese character to unicode

    hello,i have a problem.
    how can i know the unicode of chinese character in a file?
    like this character ' &#31216; ' in a file a.txt
    then how can i do to read the a.txt file then get the unicode of the character?
    really need help..

    i want to know what is the algorithm and the coding
    of that tool.
    thanksYou might consider downloading the open source project and looking directly at the code for that tool. I imagine that you could create something similar in...oh, maybe 25 lines of code.
    retrieve the command line args
    open the specified file using the charset encoding specified
    for (all characters in the file) {
    if character is > 0xFF convert to \uXXXX
    output character to new file
    John O'Conner

  • Above downloading double character file

    Hello experts:
    i use the
      CALL METHOD cl_gui_frontend_services=>gui_download
        EXPORTING
          filename                = a_full_filename
          filetype                = a_filetype
         TRUNC_TRAILING_BLANKS   = SPACE
         DAT_MODE                = SPACE
         CONFIRM_OVERWRITE       = SPACE
         NO_AUTH_CHECK           = SPACE
         CODEPAGE                = SPACE
         IGNORE_CERR             = ABAP_TRUE
         REPLACEMENT             = '#'
        IMPORTING
          filelength              = l_file_length
        CHANGING
          data_tab                = at_stream.
    to download file. 
    the parameter a_filetype = 'ASC' and the at_stream
    likes following
    1     [VARIANT]                     #[DESCRIPTION]#I_LAND1#I_MOLGA#I_SPRAS1#I_SPRAS2#I_WAERS#I_KTEXT_1#I_KTEXT_2#
    2     *                             ###################
    3     *ECATTDEFAULT                 ###################
    4     HOME                          #Home (ZH)#CN##28#EN#ZH#CNY#Yuan#人民币#Chinese Yuan (international)#中国人民币#
    why the Chinese word in downloaded file cannot be displayed
    Best Regards,
    Kevin

    Hi,
    Since that chinese language is not installed in ur application server, it is unable to recognise the chinese character and giving output in the form of # . so check with ur Basis guy in order to resolve this problem..
    Rgds.,
    subash

  • How to Export the chinese character in excel using java

    Hi,
    Our application using in English, German, Franch and chinese.
    String chineseCharacter=""; // chineseCharacter like &#38263;&#38271;&#29248;&#24202;&#26481;&#19996;&#24447;&#20315;. This chinese data coming from oracle database..
    My code
    BufferedWriter printer = new BufferedWriter(new OutputStreamWriter(responses.getOutputStream(),"utf-8"));
    responses.setContentType("application/download");
    responses.setHeader("Cache-Control", "cache");
    responses.setHeader("pragma", "cache");
    ExcelCSVPrinter outcr = new ExcelCSVPrinter(printer);
    String displayname="ChineseReport.csv";
    responses.setHeader("Content-Disposition","inline; filename=\"" + displayname + "\"");
    outcr.write("Report Header Name");
    outcr.writeln();
    outcr.write(chineseCharacter);
    outcr.writeln();
    After export the data to excel show the result for 長长牀床東东彿佛. But not show the original result &#38263;&#38271;&#29248;&#24202;&#26481;&#19996;&#24447;&#20315;
    I use the following stmt
    responses.setContentType("text/html charset=UTF-8");
    Its shows the correct result for chinese character.
    I use the below statement
    responses.setContentType("application/download; charset=UTF-8");
    or
    responses.setContentType("application/vnd.ms-excelset;charset=UTF-8");      
    or     
    responses.setContentType("application/vnd.ms-excel;charset=UTF-8");
    The out put show the in the excel sheet ???????? or some other jung characters.
    What can i do here?. After export,I want to show the original chinese character in the excel sheet using the ExcelCSVPrinter.
    Thanks & Regards
    Thendral
    Edited by: palanithendral on Dec 24, 2009 5:14 AM
    Edited by: palanithendral on Dec 29, 2009 11:41 AM

    palanithendral wrote:
    Hi,
    Our application using in English, German, Franch and chinese.You have several different idioms in your application and have not accurately identified where the actual problem is. You have all of the following
    -database
    -http
    -excel
    -excel in http
    -display on the target computer
    The first step with these sorts of problem is to identify where the problem actually occurs.
    String chineseCharacter=""; // chineseCharacter like &#38263;&#38271;&#29248;&#24202;&#26481;&#19996;&#24447;&#20315;. This chinese data coming from oracle database..A good theory. Now explain how you proved that that is what is coming from the database.
    After export the data to excel show the result for 長长牀床東东彿佛.As another example. Presumably you are referring to what the browser on the target computer displays. Your theory is that that computer and that browser (together) will display the correct information if they had the correct data. How did you prove that?

Maybe you are looking for