<?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: Cannot get encoding correct using ABAP XML in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/cannot-get-encoding-correct-using-abap-xml/m-p/7095288#M1507716</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ever managed to get this done?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tried "UTF-8" in capitals?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ciao&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alex&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 11 Feb 2011 11:21:06 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-02-11T11:21:06Z</dc:date>
    <item>
      <title>Cannot get encoding correct using ABAP XML</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cannot-get-encoding-correct-using-abap-xml/m-p/7095287#M1507715</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need to transform data using ABAP transforms and the DOM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm expecting to get a string like this out of the DOM tree when I call IF_IXML_NODE-&amp;gt;GET_VALUE( &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jukan testityö&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead I get:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jukan testityA¶&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(This is finnish).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The inbound XML is UTF-8 encoded, and the text is fine when browsing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have two issues:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) When I call CALL TRANSFORM and my xslt code has &amp;lt;xsl:output encoding="utf-8"/&amp;gt;, it works with the XSLT_TOOL in test mode and sets the encoding for the transformed XML as UTF-8. However, when I call CALL TRANSFORM in the program, the encoding of the transformed file is "iso-8859-1". I cannot change the encoding, even if using CALL TRANSFORMATION with OPTIONS xml_header = 'full'. How can I do that? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried to use the SET_ENCODING methods of the if_ixml_istream and if_ixml_document objects like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;l_encoding = l_ixml-&amp;gt;create_encoding( byte_order ='1', character:_set = 'utf-8' ).&lt;/P&gt;&lt;P&gt;l_istream-&amp;gt;set_encoding( encoding = l_encoding ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and this still does not work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea how I can correctly render my xml to correctly display finnish characters?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tony.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Jul 2010 12:21:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cannot-get-encoding-correct-using-abap-xml/m-p/7095287#M1507715</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-01T12:21:14Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot get encoding correct using ABAP XML</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cannot-get-encoding-correct-using-abap-xml/m-p/7095288#M1507716</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ever managed to get this done?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tried "UTF-8" in capitals?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ciao&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alex&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Feb 2011 11:21:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cannot-get-encoding-correct-using-abap-xml/m-p/7095288#M1507716</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-11T11:21:06Z</dc:date>
    </item>
  </channel>
</rss>

