<?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 # symbol in string after base64 encoding/decoding in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/symbol-in-string-after-base64-encoding-decoding/m-p/10735145#M1874409</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;We are sending XML files from our ERP to another SAP system. In order to send those files we first encode them, insert encoded text into SOAP message body and then send to a webservice that deals with forwarding the request to our target system. However there is a slight mistake in encoding the xml file - after decoding there appears to be a "#" symbol in the very beginning of the file. I've debugged the encoding process multiple times and this symbol does not exist there before encoding. This doesn't necessarily mean that there is a "#" symbol in the file. It could be newline or some other kind of symbol yet I used CONDENSE on that string and it doesn't make the problem go away. Has anybody else had this problem in the past?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I should also add that the files being read are BCM Batch payment files that are stored in TemSe.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 Dec 2014 10:43:28 GMT</pubDate>
    <dc:creator>rauno_veberson2</dc:creator>
    <dc:date>2014-12-22T10:43:28Z</dc:date>
    <item>
      <title># symbol in string after base64 encoding/decoding</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/symbol-in-string-after-base64-encoding-decoding/m-p/10735145#M1874409</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;We are sending XML files from our ERP to another SAP system. In order to send those files we first encode them, insert encoded text into SOAP message body and then send to a webservice that deals with forwarding the request to our target system. However there is a slight mistake in encoding the xml file - after decoding there appears to be a "#" symbol in the very beginning of the file. I've debugged the encoding process multiple times and this symbol does not exist there before encoding. This doesn't necessarily mean that there is a "#" symbol in the file. It could be newline or some other kind of symbol yet I used CONDENSE on that string and it doesn't make the problem go away. Has anybody else had this problem in the past?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I should also add that the files being read are BCM Batch payment files that are stored in TemSe.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Dec 2014 10:43:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/symbol-in-string-after-base64-encoding-decoding/m-p/10735145#M1874409</guid>
      <dc:creator>rauno_veberson2</dc:creator>
      <dc:date>2014-12-22T10:43:28Z</dc:date>
    </item>
    <item>
      <title>Re: # symbol in string after base64 encoding/decoding</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/symbol-in-string-after-base64-encoding-decoding/m-p/10735146#M1874410</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;&lt;/P&gt;&lt;P&gt;Try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; REPLACE first OCCURRENCES OF REGEX '[\n\t\r]' IN &amp;lt;your string&amp;gt; WITH '' .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;regards.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Dec 2014 11:25:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/symbol-in-string-after-base64-encoding-decoding/m-p/10735146#M1874410</guid>
      <dc:creator>rosenberg_eitan</dc:creator>
      <dc:date>2014-12-22T11:25:16Z</dc:date>
    </item>
    <item>
      <title>Re: # symbol in string after base64 encoding/decoding</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/symbol-in-string-after-base64-encoding-decoding/m-p/10735147#M1874411</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Already tried that. But this problem still exists.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Dec 2014 11:34:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/symbol-in-string-after-base64-encoding-decoding/m-p/10735147#M1874411</guid>
      <dc:creator>rauno_veberson2</dc:creator>
      <dc:date>2014-12-22T11:34:55Z</dc:date>
    </item>
    <item>
      <title>Re: # symbol in string after base64 encoding/decoding</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/symbol-in-string-after-base64-encoding-decoding/m-p/10735148#M1874412</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;&lt;/P&gt;&lt;P&gt;If you write the file as plain text to some share folder do you have this problem ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you see the character in debug ? if yes find out the hex code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Dec 2014 11:45:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/symbol-in-string-after-base64-encoding-decoding/m-p/10735148#M1874412</guid>
      <dc:creator>rosenberg_eitan</dc:creator>
      <dc:date>2014-12-22T11:45:21Z</dc:date>
    </item>
    <item>
      <title>Re: # symbol in string after base64 encoding/decoding</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/symbol-in-string-after-base64-encoding-decoding/m-p/10735149#M1874413</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I debugged the program and here I saw no symbols whatsoever. However when I wrote the string to a file I saw that symbol. Downloaded the file from ERP and checked it with Hex editor. It turned out to be BOM. That's funny though because this problem has never surfaced before.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Dec 2014 12:01:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/symbol-in-string-after-base64-encoding-decoding/m-p/10735149#M1874413</guid>
      <dc:creator>rauno_veberson2</dc:creator>
      <dc:date>2014-12-22T12:01:39Z</dc:date>
    </item>
    <item>
      <title>Re: # symbol in string after base64 encoding/decoding</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/symbol-in-string-after-base64-encoding-decoding/m-p/10735150#M1874414</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Now rises the question how to remove this byte order mark? If I would read this XML from a physical file then I could just say SKIPPING BYTE-ORDER or sth like that. However I use "FI_PAYM_FILE_READ" and this doesn't allow me to specify additional options. Should I just write the string to file and then re-read this file without BOM? Or maybe this could be achieve more elegantly?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Dec 2014 12:20:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/symbol-in-string-after-base64-encoding-decoding/m-p/10735150#M1874414</guid>
      <dc:creator>rauno_veberson2</dc:creator>
      <dc:date>2014-12-22T12:20:53Z</dc:date>
    </item>
    <item>
      <title>Re: # symbol in string after base64 encoding/decoding</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/symbol-in-string-after-base64-encoding-decoding/m-p/10735151#M1874415</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;Assuming the XML is one big string......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try (I did not test this)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="h1"&gt;OPEN DATASET in &lt;SPAN class="qtext"&gt;BINARY &lt;SPAN class="qtext"&gt;MODE&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="h1"&gt;&lt;SPAN class="qtext"&gt;&lt;SPAN class="qtext"&gt;&lt;SPAN class="qtext"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="h1"&gt;&lt;SPAN class="qtext"&gt;&lt;SPAN class="qtext"&gt;&lt;SPAN class="qtext"&gt;&lt;SPAN class="qtext"&gt;TRANSFER dobj TO dset NO END OF LINE .&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="h1"&gt;&lt;SPAN class="qtext"&gt;&lt;SPAN class="qtext"&gt;&lt;SPAN class="qtext"&gt;&lt;SPAN class="qtext"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="h1"&gt;&lt;SPAN class="qtext"&gt;&lt;SPAN class="qtext"&gt;&lt;SPAN class="qtext"&gt;&lt;SPAN class="qtext"&gt;close....&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="h1"&gt;&lt;SPAN class="qtext"&gt;&lt;SPAN class="qtext"&gt;&lt;SPAN class="qtext"&gt;&lt;SPAN class="qtext"&gt;regards.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Dec 2014 13:35:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/symbol-in-string-after-base64-encoding-decoding/m-p/10735151#M1874415</guid>
      <dc:creator>rosenberg_eitan</dc:creator>
      <dc:date>2014-12-22T13:35:20Z</dc:date>
    </item>
    <item>
      <title>Re: # symbol in string after base64 encoding/decoding</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/symbol-in-string-after-base64-encoding-decoding/m-p/10735152#M1874416</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well that's the thing. I shouldn't need to write this XML into physical file before it has reached its destination. And it should already be sent in correct form. So what I need to do, is remove BOM from string and then encode it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Dec 2014 14:03:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/symbol-in-string-after-base64-encoding-decoding/m-p/10735152#M1874416</guid>
      <dc:creator>rauno_veberson2</dc:creator>
      <dc:date>2014-12-22T14:03:07Z</dc:date>
    </item>
  </channel>
</rss>

