<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: convert string from UTF8 to CP1256 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-string-from-utf8-to-cp1256/m-p/8584036#M1661084</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can it be used - &lt;STRONG&gt;TRANSLATE string FROM CODE PAGE cp1 TO CODE PAGE cp2&lt;/STRONG&gt; ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 01 Feb 2012 09:46:47 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2012-02-01T09:46:47Z</dc:date>
    <item>
      <title>convert string from UTF8 to CP1256</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-string-from-utf8-to-cp1256/m-p/8584032#M1661080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;dear all&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to convert String from UTF8 to CP1256   encoding technique before inserting them in the data base  is there a function module or other thing to make this conversion.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jan 2012 11:19:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-string-from-utf8-to-cp1256/m-p/8584032#M1661080</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-01-30T11:19:45Z</dc:date>
    </item>
    <item>
      <title>Re: convert string from UTF8 to CP1256</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-string-from-utf8-to-cp1256/m-p/8584033#M1661081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In FM GUI_UPLOAD SAP use class cl_abap_conv_out_ce (you can find it in include LSFESF03).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. cl_abap_conv_out_ce=&amp;gt;create&lt;/P&gt;&lt;P&gt;2. cl_abap_conv_out_ce-&amp;gt;write&lt;/P&gt;&lt;P&gt;3. cl_abap_conv_out_ce-&amp;gt;get_buffer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I didn't try it, but maybe it will cover your case. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Marcin Cholewczuk&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jan 2012 11:37:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-string-from-utf8-to-cp1256/m-p/8584033#M1661081</guid>
      <dc:creator>marcin_cholewczuk</dc:creator>
      <dc:date>2012-01-30T11:37:35Z</dc:date>
    </item>
    <item>
      <title>Re: convert string from UTF8 to CP1256</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-string-from-utf8-to-cp1256/m-p/8584034#M1661082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;could you please write  sample code to me which i can create object and access the method &lt;/P&gt;&lt;P&gt;because i didn't work with object oriented .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i write :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: conv type REF TO cl_abap_conv_in_ce.&lt;/P&gt;&lt;P&gt;CREATE OBJECT conv.&lt;/P&gt;&lt;P&gt; conv = cl_abap_conv_in_ce=&amp;gt;create(&lt;/P&gt;&lt;P&gt;encoding = 'UTF-8' ).&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; conv-&amp;gt;convert(&lt;/P&gt;&lt;P&gt;EXPORTING input = lxs_content&lt;/P&gt;&lt;P&gt;IMPORTING data = l_contline ). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itreturn error&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jan 2012 13:57:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-string-from-utf8-to-cp1256/m-p/8584034#M1661082</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-01-30T13:57:18Z</dc:date>
    </item>
    <item>
      <title>Re: convert string from UTF8 to CP1256</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-string-from-utf8-to-cp1256/m-p/8584035#M1661083</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i would like to convert for example &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Arabic text  "بسم الله "   to the flowing text ---&amp;gt;  ط¨ط³ظu2026 ط§ظu201Eظu201Eظu2021      i think this encoding is CP1256   &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please i want a sample code to do this .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Feb 2012 09:12:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-string-from-utf8-to-cp1256/m-p/8584035#M1661083</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-01T09:12:44Z</dc:date>
    </item>
    <item>
      <title>Re: convert string from UTF8 to CP1256</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-string-from-utf8-to-cp1256/m-p/8584036#M1661084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can it be used - &lt;STRONG&gt;TRANSLATE string FROM CODE PAGE cp1 TO CODE PAGE cp2&lt;/STRONG&gt; ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Feb 2012 09:46:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-string-from-utf8-to-cp1256/m-p/8584036#M1661084</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-01T09:46:47Z</dc:date>
    </item>
    <item>
      <title>Re: convert string from UTF8 to CP1256</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-string-from-utf8-to-cp1256/m-p/8584037#M1661085</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find the bellow link for your solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://wiki.sdn.sap.com/wiki/display/ABAP/Character" target="test_blank"&gt;http://wiki.sdn.sap.com/wiki/display/ABAP/Character&lt;/A&gt;&lt;EM&gt;encoding&lt;/EM&gt;conversion&lt;/P&gt;&lt;P&gt;&lt;A href="http://tcltk.co.kr/files/tdom3.pdf" target="test_blank"&gt;http://tcltk.co.kr/files/tdom3.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And check the bellow code which give some idea about your requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Convert XString to String&lt;/P&gt;&lt;P&gt;    data: loc_conv type ref to CL_ABAP_CONV_IN_CE,&lt;/P&gt;&lt;P&gt;            loc_xstring type xstring,&lt;/P&gt;&lt;P&gt;            loc_string type string.&lt;/P&gt;&lt;P&gt;    CALL METHOD CL_ABAP_CONV_IN_CE=&amp;gt;CREATE&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        INPUT       = loc_xstring&lt;/P&gt;&lt;P&gt;        ENCODING    = 'UTF-8'&lt;/P&gt;&lt;P&gt;        REPLACEMENT = '?'&lt;/P&gt;&lt;P&gt;        IGNORE_CERR = ABAP_TRUE&lt;/P&gt;&lt;P&gt;      RECEIVING&lt;/P&gt;&lt;P&gt;        CONV        = loc_CONV.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    TRY.&lt;/P&gt;&lt;P&gt;        CALL METHOD loc_CONV-&amp;gt;READ&lt;/P&gt;&lt;P&gt;          IMPORTING&lt;/P&gt;&lt;P&gt;            DATA = loc_string.&lt;/P&gt;&lt;P&gt;      CATCH CX_SY_CONVERSION_CODEPAGE.&lt;/P&gt;&lt;P&gt;*-- Should ignore errors in code conversions&lt;/P&gt;&lt;P&gt;      CATCH CX_SY_CODEPAGE_CONVERTER_INIT.&lt;/P&gt;&lt;P&gt;*-- Should ignore errors in code conversions&lt;/P&gt;&lt;P&gt;      CATCH CX_PARAMETER_INVALID_TYPE.&lt;/P&gt;&lt;P&gt;      CATCH CX_PARAMETER_INVALID_RANGE.&lt;/P&gt;&lt;P&gt;    ENDTRY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Goutam Kolluru.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Feb 2012 09:58:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-string-from-utf8-to-cp1256/m-p/8584037#M1661085</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-01T09:58:18Z</dc:date>
    </item>
    <item>
      <title>Re: convert string from UTF8 to CP1256</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-string-from-utf8-to-cp1256/m-p/8584038#M1661086</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can open a file using OPEN DATASET encoding with code page 1401 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Feb 2012 12:10:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-string-from-utf8-to-cp1256/m-p/8584038#M1661086</guid>
      <dc:creator>former_member214857</dc:creator>
      <dc:date>2012-02-01T12:10:28Z</dc:date>
    </item>
    <item>
      <title>Re: convert string from UTF8 to CP1256</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-string-from-utf8-to-cp1256/m-p/8584039#M1661087</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i use this function  ( SCP_TRANSLATE_CHARS ) to make convertion from   &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Arabic text  "بسم الله " to the flowing text ---&amp;gt; ط¨ط³ظu2026 ط§ظu201Eظu201Eظu2021 &lt;/P&gt;&lt;P&gt;i use it as &lt;/P&gt;&lt;P&gt;CALL FUNCTION 'SCP_TRANSLATE_CHARS'&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;          INBUFF                   = 'بسم الله'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                                             INBUFFLG                 = 0&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          INCODE                   = '4110'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                                             OUTBUFFLG                = 0&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          OUTCODE                  = '8704'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                                             CSUBST                   = 'X'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                                             SUBSTC_HASH              = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                                             SUBSTC_DOT               = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                                             SUBSTC_SPACE             = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                                             SUBSTC                   = '00035'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;       IMPORTING&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                                             INUSED                   =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;         OUTBUFF                  = text&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                                             OUTOVERFLOW              =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                                             OUTUSED                  =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                                             SUBSTED                  =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                                             INPUT_ENDS_IN_CHAR       =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                                             ERRMSG                   =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                                           EXCEPTIONS&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                                             INVALID_CODEPAGE         = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                                             INTERNAL_ERROR           = 2&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                                             CANNOT_CONVERT           = 3&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                                             FIELDS_BAD_TYPE          = 4&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                                             OTHERS                   = 5&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;write : text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but it doesn't return the output that i need as mentioned above can any one tell me how to get my need output .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Feb 2012 17:56:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-string-from-utf8-to-cp1256/m-p/8584039#M1661087</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-04T17:56:33Z</dc:date>
    </item>
    <item>
      <title>Re: convert string from UTF8 to CP1256</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-string-from-utf8-to-cp1256/m-p/8584040#M1661088</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It won't work because when you pass value like this SAP treats it as Unicode (little endian). Prepare file in notepad and choose UTF-8 and use its inside as input for this function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Marcin Cholewczuk&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Feb 2012 22:47:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-string-from-utf8-to-cp1256/m-p/8584040#M1661088</guid>
      <dc:creator>marcin_cholewczuk</dc:creator>
      <dc:date>2012-02-04T22:47:26Z</dc:date>
    </item>
    <item>
      <title>Re: convert string from UTF8 to CP1256</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-string-from-utf8-to-cp1256/m-p/8584041#M1661089</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks resolved&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Feb 2012 18:02:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-string-from-utf8-to-cp1256/m-p/8584041#M1661089</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-19T18:02:29Z</dc:date>
    </item>
  </channel>
</rss>

