<?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: Create XML File with codepage (not UNICODE) in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-xml-file-with-codepage-not-unicode/m-p/867995#M49325</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Another option rather than converting it after the fact is to have it create the XML file in the encoding that you want to begin with.  It looks like this function module you mention will either accept a pointer to a XML document object or create one for you.  I would suggest that you go ahead and create a document yourself and pass it to the function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  ixml = cl_ixml=&amp;gt;create( ).
  document = ixml-&amp;gt;create_document( ).
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can then call the method SET_ENCODING of the class IF_IXML_DOCUMENT.  The encoding itself is another class of type IF_IXML_ENCODING.  You can set the character set in this object using method SET_CHARACTER_SET.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Jan 2005 13:07:16 GMT</pubDate>
    <dc:creator>thomas_jung</dc:creator>
    <dc:date>2005-01-04T13:07:16Z</dc:date>
    <item>
      <title>Create XML File with codepage (not UNICODE)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-xml-file-with-codepage-not-unicode/m-p/867993#M49323</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using the SDIXML_DATA_TO_DOM function module to create a xml format from an internal table, finally I write the internal table in xml format to file in the application server.&lt;/P&gt;&lt;P&gt;Finally I get a file in XML format in UTF-8 (UNICODE), but I have to convert the UTF-8 into other codepage because the file is send to other system which not familiar with the UNICODE.&lt;/P&gt;&lt;P&gt;Does anyone knows how to convert the codepage for the xml internal table ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Yaki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Jan 2005 15:40:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-xml-file-with-codepage-not-unicode/m-p/867993#M49323</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-01-03T15:40:23Z</dc:date>
    </item>
    <item>
      <title>Re: Create XML File with codepage (not UNICODE)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-xml-file-with-codepage-not-unicode/m-p/867994#M49324</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;check out Thomas's weblog on &amp;lt;b&amp;gt;BSP Download to Excel in Unicode Format&amp;lt;/b&amp;gt; at&lt;/P&gt;&lt;P&gt;/people/thomas.jung3/blog/2004/08/09/bsp-download-to-excel-in-unicode-format&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In there he had talked about converting the codepage.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Raja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Jan 2005 05:22:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-xml-file-with-codepage-not-unicode/m-p/867994#M49324</guid>
      <dc:creator>athavanraja</dc:creator>
      <dc:date>2005-01-04T05:22:48Z</dc:date>
    </item>
    <item>
      <title>Re: Create XML File with codepage (not UNICODE)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-xml-file-with-codepage-not-unicode/m-p/867995#M49325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Another option rather than converting it after the fact is to have it create the XML file in the encoding that you want to begin with.  It looks like this function module you mention will either accept a pointer to a XML document object or create one for you.  I would suggest that you go ahead and create a document yourself and pass it to the function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  ixml = cl_ixml=&amp;gt;create( ).
  document = ixml-&amp;gt;create_document( ).
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can then call the method SET_ENCODING of the class IF_IXML_DOCUMENT.  The encoding itself is another class of type IF_IXML_ENCODING.  You can set the character set in this object using method SET_CHARACTER_SET.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Jan 2005 13:07:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-xml-file-with-codepage-not-unicode/m-p/867995#M49325</guid>
      <dc:creator>thomas_jung</dc:creator>
      <dc:date>2005-01-04T13:07:16Z</dc:date>
    </item>
    <item>
      <title>Re: Create XML File with codepage (not UNICODE)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-xml-file-with-codepage-not-unicode/m-p/867996#M49326</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jung,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  You have told that &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  "You can then call the method SET_ENCODING of the class IF_IXML_DOCUMENT. The encoding itself is another class of type IF_IXML_ENCODING. You can set the character set in this object using method SET_CHARACTER_SET."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Can you please give the code how to do this because i tried this in ABAP Mapping used in XI which converts Idoc XML to Idoc flat file. Chinese characters are getting replaced with # after the ABAP Mapping.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Dinakar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Apr 2008 12:56:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-xml-file-with-codepage-not-unicode/m-p/867996#M49326</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-29T12:56:17Z</dc:date>
    </item>
    <item>
      <title>Re: Create XML File with codepage (not UNICODE)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-xml-file-with-codepage-not-unicode/m-p/867997#M49327</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Same problem after upgrade to EHP6&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Oct 2013 09:12:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-xml-file-with-codepage-not-unicode/m-p/867997#M49327</guid>
      <dc:creator>miko2</dc:creator>
      <dc:date>2013-10-15T09:12:56Z</dc:date>
    </item>
  </channel>
</rss>

