<?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: UTF-8 file creation using ABAP in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/utf-8-file-creation-using-abap/m-p/3146169#M747922</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Our SAP server is Windows, is it possible to create a UFF-8 file?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used parameter 'encoding UTF-8' while creating the file on App Server as above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then I downloaded the file  using 'Gui_download' with parameter codepage = 4110, then i got a UTF-8 file on local machine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;why utf-8 file wasn't created on App server?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;too many questions here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks All.&lt;/P&gt;&lt;P&gt;Legend.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 28 Dec 2007 08:14:53 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-12-28T08:14:53Z</dc:date>
    <item>
      <title>UTF-8 file creation using ABAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/utf-8-file-creation-using-abap/m-p/3146168#M747921</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to create a UTF-8 file on Application Server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Question 1:&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;I tried using statement 'Open dataset for output in text mode encoding utf-8'. The file was created. Then I used CL_ABAP_FILE_UTILITIES=&amp;gt;CHECK_UTF8 to check the encoding. 'A' was returned respresenting ASC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestion on this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or is there any option to convert a ASC file to UTF-8?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Question 2:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After creating the file on Application Server, I used code below to check the encoding.&lt;/P&gt;&lt;P&gt;  call method CL_ABAP_FILE_UTILITIES=&amp;gt;CHECK_UTF8&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      file_name = fname&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      encoding  = encoding.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if encoding = CL_ABAP_FILE_UTILITIES=&amp;gt;ENCODING_UTF8.&lt;/P&gt;&lt;P&gt;    write: / fname, 'File format is UTF-8.'.&lt;/P&gt;&lt;P&gt;  else.&lt;/P&gt;&lt;P&gt;    write: / fname, 'File format is not UTF-8.'.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;When I was using this method to check a local file, i got error. can't this method do that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Legend.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Dec 2007 08:07:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/utf-8-file-creation-using-abap/m-p/3146168#M747921</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-27T08:07:33Z</dc:date>
    </item>
    <item>
      <title>Re: UTF-8 file creation using ABAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/utf-8-file-creation-using-abap/m-p/3146169#M747922</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Our SAP server is Windows, is it possible to create a UFF-8 file?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used parameter 'encoding UTF-8' while creating the file on App Server as above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then I downloaded the file  using 'Gui_download' with parameter codepage = 4110, then i got a UTF-8 file on local machine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;why utf-8 file wasn't created on App server?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;too many questions here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks All.&lt;/P&gt;&lt;P&gt;Legend.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Dec 2007 08:14:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/utf-8-file-creation-using-abap/m-p/3146169#M747922</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-28T08:14:53Z</dc:date>
    </item>
  </channel>
</rss>

