Unicode Chinese Chars to GB2312 encoded chinese chars

Hi All,
  In SAP how to covert the Unicode chinese characters to GB2312 encoded chinese characters, Can any one help on this.
Regards,
Prakash

Hi All,
My requirement is ECC 6.0 system is unicode chinese character system. So in this If I run a payment, it should be downloaded as File in GB2312 chinese charater format.
I know how to generate payment. So please provide help to download in the required format.
Hoping for good reply.
Regards,
Prakash

Similar Messages

  • Char, UTF, Unicode, International chars

    Hi all,
    Could anybody make a brief summary of the connections among the char data type, UTF, Unicode, International chars?
    Thanks!

    The java char data type usually contains one unicode character. However, some unicode characters are larger than 16 bits (which is the size of char). Those characters are represented by multiple chars. There are multiple byte encodings for Unicode. Two of the most common are UTF-8 and UTF-16. The char data type stores characters in the UTF-16 encoding. UTF-8 is a common format for serializing unicode since it takes up half the space of UTF-16 for the most common characters. Also, UTF-8 deals with bytes, so byte order is not an issue when transfering between different platforms. Finally, one of the best reasons to use UTF-8 is that for characters with code < 128, UTF-8 is identical to ascii.
    Every character is an international character.

  • Safari "Download Linked File As ..." dialog box seems to convert 3 or more consecutive period chars (\056) in the new file name into a Unicode ellipsis char \342\200\246 in the file name.  How prevent this ?

    Safari "Download Linked File As ..." dialog box seems to convert 3 or more consecutive period chars (\056) into a Unicode ellipsis char ( \342\200\246 ) in the file name that I type.  How does one prevent this ?

    I know nothing about “EndNote”, but allow me to give you some general advice. Your first, commented-out, line (“--section to wait for window to pop up”) indicates that you need to change the basic way you are tackling what you want to do. When writing any script, if you know the name and location of a file or a directory (folder) you should not cause (or allow, or need) your script to open an Open or a Save window -- just use the path that you already know.
    Andreas

  • 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

  • Unicode :  Chinese

    Hi ALL  ,
    Recently we moved to Unicode , and we are facing problem with an interface program for citybank
    citybank -cityDirect  specification is based on the field position in the flat file,it identifies  fields from the field position.
    File is downloaded  to flat file with fields in the exact position , as it is specified in the internal table/ structure field length declaration .
    <b>The issue .</b>
    In Unicode system, the format of the file downloaded is disturbed because of Chinese characters in the file  .
    This is because Unicode system considers the length of a Chinese character as 1,   even though it occupy  2 spaces/places compared to English ( in the flat file /Notepad ).
    Ex:
    ab ab ab ab
    &#28023;  &#40784; &#23572;  &#31639;  May be chinese is big and it is of 2 bytes where as english is 1 .
    So when the user  download the file in ANSI, the  field length of  field  NAME1  ( which hold Chinese characters )  in the text file is increasing   , and the entire file format is getting disturbed .
    I know, I can count the bytes ,find out Chinese chr in the string , adjust the field length dynamically . But this does not seem to be standard solution.
    Did anybody face this problem before?
    Thanks for any reply ,

    Hi,
    I don't understand fully: If you download using unicode characters then all characters regardless of chinese or not should occupy 2 bytes. How do you change encoding within the record?
    It won't be possible to convert to latin without losing information.
    Regards,
    Clemens

  • Java, International language, Unicode, Chinese or accented characters

    Hi, I've posted a message in the new to forum but think that this is more of an advanced problem.
    Sorry for duplication.
    I am having trouble getting java to output Strings that contain unicode characters out of the normal ascii set. This includes accented letters and chinese characters.
    Example code:
    String jintian = "??"
    System.out.println(jintian) ;(The string jintian should refer to two chinese characters. I'm having trouble getting these to appear properly here, you may see ??.)
    Basically if I run this code the output I get is ??. Questionmarks in place of the chinese characters.
    There is either a problem here with Java or with my Shell but I don't know how to troubleshoot this.
    I can tell you that my shell is able to display chinese characters, but with the ls command I have to use a flag. -v. I have tried using this -v flag with the java command but it is rejected.
    One more thing, when compiling I am using the -encoding=UTF-8 flag.
    I have the line ...
    export LANG=en_UK.UTF-8... in my bash profile.
    Any ideas, I would be really grateful.
    Message was edited by:
    stanton_ian
    Message was edited by:
    stanton_ian
    In case anyone is interested in trying this themselves and doesn't know how to put in the Chinese characters here is a link to a pre-written very simple Class. http://freespace.virgin.net/i.stanton/NiHao.html .
    You will need to save the file in utf8 encoding and compile it with the -encoding UTF-8 flag.

    Between jdk1.2 and jdk 1.3 the default encoding of the vm changed.
    You can get it by executing:
    System.out.println("Default Encoding:" + System.getProperty("file.encoding"));
    or
    System.out.println("Default Encoding:" + (new java.io.InputStreamReader(System.in)).getEncoding());
    The default encoding is used during the conversion of bytes to strings and vice verca.
    Assume your default encoding is ISO8859_1. Then calling new String(byte[]) is equivalent to calling
    new String(byte[], "ISO8859_1")
    Now if you are converting a character from one encoding scheme to another and there is no mapping
    for this character in the target scheme. Then the character will be replaced by a default character
    which is (quite often) the question mark.
    You can set the default encoding for a vm by passing it as a command line parameter
    java -Dfile.encoding=ISO8859_1
    java -Dfile.encoding=Cp1252

  • Unicode, assignment  char to hex

    Hi Experts,
        I have a question related to assignment of char to hex in
    uni-code system.
    Here is piece of code:
    In non-uncode system:
    data:
    begin of struct,
    x1(1) type x,
    end of struct.
    data:
    c1 type c value 'C'.
    struct1 = c1.
    In unicode system
    *struct1 = c1 is not allowed.
    If i assign struct1-x1 = c1, intenally the values value are getting changed that can be seen in debug mode .
    for example: internal value for 'C' is 43,similarlly for 'L' it is 4C.
    so how can i assign this in unicode system with out the values to be changed ...
    please reply
    Sorry iam posting this twice because the first post thread got closed .....
    Regards
    Syed Abdul Adil.

    There are function modules in the system to convert hex values to char values.
    These function modules are:
    NLS_STRING_CONVERT_TO_SYS (hex to char)
    NLS_SRING_CONVERT_FROM_SYS (char to hex)
    If it's the tab character then it can be done with (example):
    data: x1 type char1 value c1_abap_char_utilities=>horizontal_tab.

  • Unicode (Chinese) As Input In Global_AddressCleanse Transformation

    Hi All,
    Is it possible to use Unicode fields as input () for Global Address Transformation.
    I am using Data Service 3.0.
    If I use unicode fields as data input , Data Services does not perform any cleaning , infact it does give the output fields itself.
    Thanks,
    Amit

    alexhunt wrote:
    Hi all,
    I can not figure out what is causing it to sometimes save as Unicode and sometimes as ANSI. Please let me know if there is anything further I can provide.
    Hi, alex,
    The file seems to be saved correctly and its not saved as Unicode. The file opened as Unicode.
    Do simple experiment:
    1. Start Notepad:
    2. Type 'AAAA BBB CCC DDDDD':
    3. Save it. As you can see in hex viewer, my file is correct:
    4. Now open this file in notepad, you will be surprised:
    This is true for XP, not sure how it works with Windows 7.
    Try to open your file in that way:
    Andrey.

  • Unicode - Japanese Char problems on EN logon

    Hi Everyone,
    We recently upgraded our system, from a non-unicode to a unicode system.  Whenever i view a SAPscript report using english logon that contains both japanese & english characters in one field, the print preview is ok, displaying correct data in both languages. The problem arises when i try to print the report. All japanese characters are garbled, while all english characters are still ok.
    I tried logging in using japanese language, and printed a japanese report that uses both characters, and everything was ok, in both print preview & hardcopy printout.
    BTW, we're using version 640 for our SAP GUI, with patch level 19.
    Hoping for your inputs. Thanks in advance!

    Hi,
    If your system is unicode enabled, you should use true type fonts in the paragraph format to display the multi language characters. In the japanese language form did you use any special type of font types you use? Normally all the special font types will support english and not all the english fonts will support the local language characters.
    Since the output is printing fine with the Janpanese language there should not be any problem with the printer drivers, otherwise we need to check the drivers also.
    Hope this helps you

  • ERP 2005 / Unicode / Japanese char's in download file.

    Hi,
    We login with language = JA and executes transac. ME2L. The output appears on the screen and now we want save a local file *.txt.
    However, since this is output with Japanese characters, the vertikal graphic characters that generates the frame for the downloaded content looks odd.
    The vertikal lines are broken and not straight anymore.
    This is the right side of the page and frame. Because of the Japanese user, these downloads look bad.
    Any suggestion ?
    Thanks.
    Message was edited by:
            Peter C. Sandgaard

    Handed over to SAP support and note created

  • Converting Chinese Characters from UTF-8 to GB2312

    Hi,
    I need to interact with an external system that only accepts GB2312 encoded strings as input.
    I have a site that is used to capture user input before feeding the data to the system. (Refer to the following)
    <%
    String strName = request.getParameter("strName");
    boolean serviceStatus = false;
    if (request.getParameter("strName") != null)
    serviceStatus=invokeTheService(strName,"text_process");
    %>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    How can i encode the "strName" variable value to "GB2312". (Do be informed that i am unable to change the meta Content-Type to GB2312)
    I had tried using the following but was unable get it right.
    strName = new String(strName.getBytes("UTF-8"),"GB2312");
    I had also tried using the CharsetEncoder.encode to attempt to encode it to GB2312 but kept getting a UnmappableCharacterException message.
    *Correct me if i'm wrong, but UTF-8 tends to represent characters in 1,2 or 3 bytes.
    In the case of chinese characters, each character is represented by 3 bytes.
    GB2312 tends to represent each character in 2 bytes.
    So if i have a 3 chinese character as input, the original strName.length() would return 9. whereas the Gb2312 encoded strName should return 6 ?

    KeithTan wrote:
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    How can i encode the "strName" variable value to "GB2312". (Do be informed that i am unable to change the meta Content-Type to GB2312)Then what is the point of converting to GB2312 if you inform the recipient that it is encoded as something other than GB2312?
    >
    I had tried using the following but was unable get it right.
    strName = new String(strName.getBytes("UTF-8"),"GB2312");That can never ever be right. Java Strings are UNICODE encoded as UTF16. They are always encoded internally as UTF16 so your code says - convert the string to UTF8 bytes and then, even though they are UTF8 bytes and not GB2312 bytes, treat them as GB2312 bytes. That will almost certainly corrupt the String
    >
    I had also tried using the CharsetEncoder.encode to attempt to encode it to GB2312 but kept getting a UnmappableCharacterException message.Even if Java does support GB2312 then it is a wast of time sending GB2312 content to a client and telling the client that it is UTF-8 .

  • Payment in GB2312 chinese characters

    Hi All,
    My requirement is ECC 6.0 system is unicode chinese character system. So in this If I run a payment, it should be downloaded as File in GB2312 chinese charater format.
    I know how to generate payment. So please provide help to download in the required format.
    Hoping for good reply.
    Regards,
    Prakash

    Hi Prakash,
    The answer I gave you is valid for PME formats, for the "classical" (old) programs I do not know where the settings can be. 
    Please, check the OSS note 628299, in fact there are few relevant notes for your issue.
    Thanks,
    Paulo
    Edited by: Paulo Vitoriano on Aug 5, 2009 12:20 PM

  • Unrecognised Char in GB2312 character set using java InputStreamReader??

    Reading the following file chinese GB2312 html file from
    http://news.xinhuanet.com/local/2007-02/13/content_5732705.htm
    using the InputStreamReader with GB2312 encoding as shown below
    public class readGB2312html file
    //........TmpText declarations.....
    public static void main( String[] args )
    try
    FileInputStream is = new FileInputStream( args[0] );
    BufferedReader br = new BufferedReader(
    new InputStreamReader( is, "GB2312" ) );
    String strLine;
    while ( (strLine = br.readLine()) != null )
    TmpText.append(strLine);
    TmpText.append("\r\n");
    br.close();
    bw.close();
    catch ( Exception e )
    e.printStackTrace();
    The TmpText variable does not display the last character in the article properly &#65288;&#35760;&#32773;&#22799;&#29690;&#65289; it gives instead &#65288;&#35760;&#32773;&#22799;?B&#65289;
    Inside the html file the unrecognised charcter is represented by �B in the html file Why is this so
    ���������B��
    In the internet browser it is displayed and recognised as a chinese GB2312 character why not recognised by Java InputStreamReader???
    Any help or explanation would be much appreciated

    Yes, it is not a GB2312 character
    The �B character is AC40 in hex format which is outside of the GB2312 character range, it is in GBK
    Copied from wikipedia,
    GBK is an extension of the GB2312 character set for simplified Chinese characters, used in the People's Republic of China.
    GB stands for National Standard, while K stands for Extension. GBK not only extended the old standard GB2312 with Traditional Chinese characters, but also with Chinese characters that were simplified after the establishment of GB2312 in 1981. With the arrival of GBK, certain names with characters formerly unrepresentable, like the "rong" (�g) character in former Chinese Premier Zhu Rongji's name, are now representable.
    Thanks a lot will use the GBK charset to read the file for all GB2312 file since it is a subset of it.

  • Simplified Chinese index is gibberish

    I use RH7 from the Tech suite and look forward to the Unicode
    support that is implicit in this release. I have a project that
    creates perfectly vaild topic pages internally, but the index is
    gibberish.
    I have set the project language to Simplified Chinese, I have
    set the default language to Simplified Chinese in the tools menu
    (just in case), and I have recreated the hhk file just to be sure.
    When I run the index wizard, I see the chinese chars in the
    display, but when I compile the project, I see :"Warning: Data loss
    is converting data using choosen(sic) language."
    Why is this happenning? I have looked at the hhk file in
    Notepad and it is Unicode (UTF8). Why is it being converted?
    Any help would be appreciated,
    Kevin

    Hi Kevin,
    Have you applied 7.01 RoboHelp update?
    It seems that you are generating CHM output on a system where
    Simplified Chinese is not a primary language. Try generating
    WebHelp and see if Index comes alright.
    For CHM compliation RoboHelp converts Unicode data to Multi
    Byte encoding before passing it to CHM compiler. What this means is
    that on an english system, where Windows 1252 is the default
    encoding format which does not support simplified chinese
    characters, CHM generation will have junk characters for chinese
    characters.
    If you provide more information then may be I can provide you
    better inputs.
    Vivek.
    Adobe Systems.

  • 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

Maybe you are looking for

  • Photoshop files & ACLs?

    I am going out of my mind here trying to figure this out. First my needs. I have two users on a 10.4 machine that need to be able to create, save and edit Photoshop files (their own and each others) in the same folder. Until now, the only way I could

  • My iPod won't import all the songs on iTunes

    My iPod Classic won't import all the songs in iTunes. Any ideas?

  • JDK seems to be missing.

    I downloaded the JDK pack from sun microsystems, but in trying to get it to work with JCreator I can't seem to find the JDK directory. It looks as though only the runtime environment, Java\jre6, installed from the jdk-6u10-windows-x64.exe, though I d

  • Cisco media subsystem - im totally confused. Please shed light :)

    I have been googling on Cisco Media subsystem. Everywhere I see the below statement. Cisco Media Configures Cisco Media Termination (CMT) dialog control groups,                     which can be used to handle simple Dual Tone Multifrequency (DTMF)-ba

  • Error in standby alertlog

    Hi, in10g R2 Unix In stand by alertlog I have : ALTER DATABASE RECOVER    CONTINUE DEFAULT Mon Jun  6 11:02:46 2011 Media Recovery Log /data01/oracle/MYDB/arch01/arcMYDB1_23448_620900925.arc Errors with log /data01/oracle/MYDB/arch01/arcMYDB1_23448_6