<?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: Open Dataset Character Encoding Error with binary file preparation. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-character-encoding-error-with-binary-file-preparation/m-p/7766210#M1584108</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;I need to prepare binary files only, I can't change it to TEXT mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you guide me how to do code page conversion, multiple languages are installed on my system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Apr 2011 15:04:29 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-04-19T15:04:29Z</dc:date>
    <item>
      <title>Open Dataset Character Encoding Error with binary file preparation.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-character-encoding-error-with-binary-file-preparation/m-p/7766205#M1584103</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have UNIX &amp;amp; LINUX application servers in our system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am writing binay files on application servers. If I am using same set of application servers while reading and writing binary files, I am able to access the data as expected. If I have written file using UNIX application server and while reading If i use Linux platform character encoding error happen as a result JUNK characters are displaying.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reason for the error is unix server uses big endian format while preparing binary file, where as linux server uses little endian format for accessing binary file format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I  tried restristing data written format as big endian/little endian addition the open dataset statement, special characters are getting converted into '#' character.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you advice further how to proceed .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Apr 2011 12:30:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-character-encoding-error-with-binary-file-preparation/m-p/7766205#M1584103</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-04-15T12:30:21Z</dc:date>
    </item>
    <item>
      <title>Re: Open Dataset Character Encoding Error with binary file preparation.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-character-encoding-error-with-binary-file-preparation/m-p/7766206#M1584104</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 you try adding IGNORING CONVERSION ERRORS &amp;amp; let us know if it works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OPEN DATASET ............... IGNORING CONVERSION ERRORS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Prashant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Apr 2011 13:37:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-character-encoding-error-with-binary-file-preparation/m-p/7766206#M1584104</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-04-15T13:37:11Z</dc:date>
    </item>
    <item>
      <title>Re: Open Dataset Character Encoding Error with binary file preparation.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-character-encoding-error-with-binary-file-preparation/m-p/7766207#M1584105</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;When I use this addition special characters like grrek and france characters are converted into '#'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can use this addition only with Legacy Binary Big Endian addition only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bysani.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Apr 2011 15:23:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-character-encoding-error-with-binary-file-preparation/m-p/7766207#M1584105</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-04-15T15:23:32Z</dc:date>
    </item>
    <item>
      <title>Re: Open Dataset Character Encoding Error with binary file preparation.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-character-encoding-error-with-binary-file-preparation/m-p/7766208#M1584106</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bysani,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I assume you have Unicode systems, right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't understand why you write the dataset as being a &lt;STRONG&gt;binary file&lt;/STRONG&gt;, while it really contains characters. Did you make a code page conversion before writing the file? In which code page?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is an example what might happen : Let's say the "writer" application server (AS) is big endian (BE), it writes the file in BE ("&amp;amp;" = 2 bytes 00 and 26 in hexadecimal). If the "reader" AS is LE, and you make it read in binary, it will transfer the BE bytes of the file into memory that will be incorrectly interpreted in LE format (0026 will be interpreted as Unicode U+2600, which is &amp;amp;#2600;).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you tell the reader AS (LE) to read the file, saying that the characters are BE, the system will convert from BE to LE (though I don't understand why you have #, there's probably something to investigate about what was initially written), but what happens now if the writer ABAP program runs on the AS in LE, and the reader ABAP program runs on the AS in BE : the reader program says the file is BE, which is wrong, so it will not convert (from BE to BE), and the byte order will be incorrect again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The best way to write text files is to write them in &lt;STRONG&gt;text mode&lt;/STRONG&gt;, not binary mode, in an exact code page (for example, UTF-8 for occidental (it is the defaut for OPEN DATASET IN TEXT MODE, in a Unicode system), and UTF-16, let's say LE, for CJK), so that the program can decode it without any problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Sandra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Apr 2011 00:29:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-character-encoding-error-with-binary-file-preparation/m-p/7766208#M1584106</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2011-04-18T00:29:16Z</dc:date>
    </item>
    <item>
      <title>Re: Open Dataset Character Encoding Error with binary file preparation.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-character-encoding-error-with-binary-file-preparation/m-p/7766209#M1584107</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;please use TEXT mode with UTF8 (in all cases). As far as I know, this is the only easy solution for this problem, as UTF-8 is platform independent.&lt;/P&gt;&lt;P&gt;Please also have a look at SAP note 1310720.&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Nils Buerckel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Apr 2011 05:03:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-character-encoding-error-with-binary-file-preparation/m-p/7766209#M1584107</guid>
      <dc:creator>nils_buerckel</dc:creator>
      <dc:date>2011-04-18T05:03:34Z</dc:date>
    </item>
    <item>
      <title>Re: Open Dataset Character Encoding Error with binary file preparation.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-character-encoding-error-with-binary-file-preparation/m-p/7766210#M1584108</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;I need to prepare binary files only, I can't change it to TEXT mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you guide me how to do code page conversion, multiple languages are installed on my system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Apr 2011 15:04:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-character-encoding-error-with-binary-file-preparation/m-p/7766210#M1584108</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-04-19T15:04:29Z</dc:date>
    </item>
    <item>
      <title>Re: Open Dataset Character Encoding Error with binary file preparation.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-character-encoding-error-with-binary-file-preparation/m-p/7766211#M1584109</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;I recently had a similar issue with one of our programs because we are upgrading our systems from non-unicode to unicode and I was able to correct the problem by changing the previous code like so:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;old - OPEN DATASET ... IN BINARY MODE&lt;/P&gt;&lt;P&gt;new - OPEN DATASET ... IN LEGACY BINARY MODE (the previous error character was a newline and this addition allowed the system to ignore the problem)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps... Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Apr 2011 01:20:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-character-encoding-error-with-binary-file-preparation/m-p/7766211#M1584109</guid>
      <dc:creator>Ryan-Crosby</dc:creator>
      <dc:date>2011-04-21T01:20:24Z</dc:date>
    </item>
  </channel>
</rss>

