<?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: File encoding in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-encoding/m-p/8853748#M1685329</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi gk,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if your program does nothing else but read from server and download to client, try binary mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or just use function module&amp;nbsp; ARCHIVFILE_SERVER_TO_CLIENT. Simple. Too simple?&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;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Jul 2012 12:54:02 GMT</pubDate>
    <dc:creator>Clemenss</dc:creator>
    <dc:date>2012-07-25T12:54:02Z</dc:date>
    <item>
      <title>File encoding</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-encoding/m-p/8853744#M1685325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Will "OPEN DATASET dsn FOR INPUT IN TEXT MODE ENCODING NON-UNICODE" cause any problem when reading a UNICODE file? Do you have idea how to check the encoding of the file? Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, gk&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jul 2012 02:49:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-encoding/m-p/8853744#M1685325</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-07-12T02:49:06Z</dc:date>
    </item>
    <item>
      <title>Re: File encoding</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-encoding/m-p/8853745#M1685326</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;Please follow the given syntax:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OPEN DATASET dataset_name FOR access IN TEXT MODE ENCODING &lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;DEFAULT&lt;/STRONG&gt;&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vaibhav Singhania&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jul 2012 05:12:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-encoding/m-p/8853745#M1685326</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-07-12T05:12:57Z</dc:date>
    </item>
    <item>
      <title>Re: File encoding</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-encoding/m-p/8853746#M1685327</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Vaibhav Singhania.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"OPEN DATASET dataset_name FOR access IN TEXT MODE ENCODING &lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;DEFAULT&lt;/STRONG&gt;&lt;/SPAN&gt;." will cause issue when reading a NON-UNICODE text file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My program is used to read a UNIX text file and then download it to the local PC.&lt;/P&gt;&lt;P&gt;The UNIX text file may contains special character such as "é". If i used this statement (&lt;STRONG&gt;&lt;SPAN class="L0S52"&gt;OPEN &lt;SPAN class="L0S52"&gt;DATASET &lt;/SPAN&gt;dsn &lt;SPAN class="L0S52"&gt;FOR &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;INPUT &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;IN &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;TEXT &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;MODE &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;ENCODING &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;DEFAULT&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;), it will hit CONVT_CODEPAGE runtime error. If i used this statement (&lt;STRONG&gt;&lt;SPAN class="L0S52"&gt;OPEN &lt;SPAN class="L0S52"&gt;DATASET &lt;/SPAN&gt;dsn &lt;SPAN class="L0S52"&gt;FOR &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;INPUT &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;IN &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;TEXT &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;MODE &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;ENCODING &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;DEFAULT IGNORING CONVERSION ERRORS.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;), although it did not hit CONVT_CODEPAGE runtime error, but when i checked the downloaded text file, i found that the special character "é" appears as "#".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jul 2012 06:01:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-encoding/m-p/8853746#M1685327</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-07-12T06:01:42Z</dc:date>
    </item>
    <item>
      <title>Re: File encoding</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-encoding/m-p/8853747#M1685328</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;you need to select the Unicode option in case of a utf-8 based file and the Non-Unicode option (+ correct logon language - sy-langu) in case of a Non-Unicode one.&lt;/P&gt;&lt;P&gt;If this does not fit, you get either an error, Hashes ("#") or Gibberish&amp;nbsp; ...&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>Wed, 25 Jul 2012 11:56:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-encoding/m-p/8853747#M1685328</guid>
      <dc:creator>nils_buerckel</dc:creator>
      <dc:date>2012-07-25T11:56:29Z</dc:date>
    </item>
    <item>
      <title>Re: File encoding</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-encoding/m-p/8853748#M1685329</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi gk,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if your program does nothing else but read from server and download to client, try binary mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or just use function module&amp;nbsp; ARCHIVFILE_SERVER_TO_CLIENT. Simple. Too simple?&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;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2012 12:54:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-encoding/m-p/8853748#M1685329</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2012-07-25T12:54:02Z</dc:date>
    </item>
    <item>
      <title>Re: File encoding</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-encoding/m-p/8853749#M1685330</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;gk goh wrote:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;... Do you have idea how to check the encoding of the file? ...&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use the methods of the class &lt;EM&gt;&lt;A href="http://help.sap.com/abapdocu_731/en/abapopen_dataset_encoding.htm#!ABAP_ALTERNATIVE_2@2@"&gt;CL_ABAP_FILE_UTILITIES&lt;/A&gt;&lt;/EM&gt; to check the encoding of an app server file. Read the individual method documentation for details on how to use this class. Based on the encoding info you get from the class you can use the proper &lt;EM&gt;ENCODING&lt;/EM&gt; option with &lt;EM&gt;OPEN DATASET&lt;/EM&gt;. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Else as suggested by &lt;A __default_attr="20865" __jive_macro_name="user" class="jive_macro jive_macro_user" href="https://community.sap.com/"&gt;&lt;/A&gt; you can use the &lt;EM&gt;BINARY MODE&lt;/EM&gt; option &amp;amp; forget about the file encoding.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Suhas Saha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2012 13:09:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-encoding/m-p/8853749#M1685330</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2012-07-25T13:09:39Z</dc:date>
    </item>
  </channel>
</rss>

