<?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: CL_HTTP_CLIENT double byte with XML in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/cl-http-client-double-byte-with-xml/m-p/6591946#M1435962</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is not existing on SAP system. The problem was the target system. On SAP side, everything works.&lt;/P&gt;&lt;P&gt;I checked it through ICF monitoring.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Barny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 Feb 2010 15:04:45 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-02-22T15:04:45Z</dc:date>
    <item>
      <title>CL_HTTP_CLIENT double byte with XML</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cl-http-client-double-byte-with-xml/m-p/6591945#M1435961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Experts!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will send a XML file containing double byte characters to another system using HTTP.&lt;/P&gt;&lt;P&gt;My data is send to the target system, that works, but the double byte characters are not correctly shown.&lt;/P&gt;&lt;P&gt;This is my code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;create http client&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CALL METHOD cl_http_client=&amp;gt;create_by_destination&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      destination = 'ESNICELABELTEST'&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      client      = lr_client.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD lr_client-&amp;gt;request-&amp;gt;set_method(&lt;/P&gt;&lt;P&gt;    if_http_request=&amp;gt;co_request_method_post ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL METHOD lr_client-&amp;gt;request-&amp;gt;set_header_field(&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;         name = 'Content-Type'&lt;/P&gt;&lt;P&gt;         value = 'text/xml; charset=UTF-8' ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT i_label_instance-&amp;gt;t_xml_string INTO ls_string.&lt;/P&gt;&lt;P&gt;       CALL METHOD lr_client-&amp;gt;request-&amp;gt;append_cdata2( ls_string ).&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL METHOD lr_client-&amp;gt;send.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anybody have an idea, what i am doing wrong? The double byte characters for &lt;/P&gt;&lt;P&gt;kyrillic for example look like these: Ð&amp;#157;Ðµ Ð¾Ñu201AÐ±ÐµÐ»Ð¸Ð²Ð°Ñu201AÑu0152&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I searched a long time in the www and also here at SDN but i didn´t found any solution or advice.&lt;/P&gt;&lt;P&gt;The connection type in the SM59 is "G" and the RFC Destination SAPHTTP is set up to unicode!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please, has anybody an idea what could be wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advanced!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards from germany!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Barney&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Feb 2010 13:04:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cl-http-client-double-byte-with-xml/m-p/6591945#M1435961</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-19T13:04:18Z</dc:date>
    </item>
    <item>
      <title>Re: CL_HTTP_CLIENT double byte with XML</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cl-http-client-double-byte-with-xml/m-p/6591946#M1435962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is not existing on SAP system. The problem was the target system. On SAP side, everything works.&lt;/P&gt;&lt;P&gt;I checked it through ICF monitoring.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Barny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Feb 2010 15:04:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cl-http-client-double-byte-with-xml/m-p/6591946#M1435962</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-22T15:04:45Z</dc:date>
    </item>
  </channel>
</rss>

