<?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 in UTF8. Problems between Unicode and non Unicode in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-in-utf8-problems-between-unicode-and-non-unicode/m-p/5977940#M1340330</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;many thanks. Tried the coding in the first example. Works fine for me!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Aug 2009 07:51:07 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-08-20T07:51:07Z</dc:date>
    <item>
      <title>open dataset in UTF8. Problems between Unicode and non Unicode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-in-utf8-problems-between-unicode-and-non-unicode/m-p/5977938#M1340328</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am currently testing the file transfer between unicode an non unicode systems.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I transfered some japanese KNA1 data from non unicode system (Mandt,Name1, Name2,City) to a file with this option:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set local language pi_langu.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  open dataset pe_file in text mode encoding utf-8 for output with byte-order mark.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I want to read the file from a unicode system. The code looks like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; open dataset file in text mode encoding utf-8 for input skipping byte-order mark.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The characters look fine but they are shifted. name1 is correct but now parts of the city characters are in name2....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I open the file in a non unicode system with the same coding the data is ok again!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a problem with spaces between unicode an non-unicode?!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Aug 2009 13:45:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-in-utf8-problems-between-unicode-and-non-unicode/m-p/5977938#M1340328</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-19T13:45:27Z</dc:date>
    </item>
    <item>
      <title>Re: open dataset in UTF8. Problems between Unicode and non Unicode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-in-utf8-problems-between-unicode-and-non-unicode/m-p/5977939#M1340329</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;please have a look at&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/702b05f0-7ece-2b10-659f-b71d74042925" target="test_blank"&gt;https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/702b05f0-7ece-2b10-659f-b71d74042925&lt;/A&gt;&lt;/P&gt;&lt;P&gt;and check whether this solves your problem.&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Nils Buerckel&lt;/P&gt;&lt;P&gt;SAP AG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Aug 2009 05:59:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-in-utf8-problems-between-unicode-and-non-unicode/m-p/5977939#M1340329</guid>
      <dc:creator>nils_buerckel</dc:creator>
      <dc:date>2009-08-20T05:59:06Z</dc:date>
    </item>
    <item>
      <title>Re: open dataset in UTF8. Problems between Unicode and non Unicode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-in-utf8-problems-between-unicode-and-non-unicode/m-p/5977940#M1340330</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;many thanks. Tried the coding in the first example. Works fine for me!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Aug 2009 07:51:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-in-utf8-problems-between-unicode-and-non-unicode/m-p/5977940#M1340330</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-20T07:51:07Z</dc:date>
    </item>
    <item>
      <title>Re: open dataset in UTF8. Problems between Unicode and non Unicode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-in-utf8-problems-between-unicode-and-non-unicode/m-p/5977941#M1340331</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello again,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after implementing and testing this method, we saw that the conversion is always taken place in the unicode system. &lt;/P&gt;&lt;P&gt;For examble: we have a char(35) field in mdmp with several japanese signs..as soon as we transfer the data into the file and have a look at it the binary data the field is only 28 chars long. several spaces are missing...now if we open the file in our unicode system using the mentioned class the size is gaining to 35 characters&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;on the other hand if we export data from unicode system using this method the size is shrinking from 35 chars to 28 so the mdmp system can interprete the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as soon as all systems are on unicode this method is obselete/wrong because we don't want to cut off/add the spaces..it's not needed anymore..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the better way would be to create a "real" UTF-8 file in our MDMP system. The question is, is there a method to add somehow the missing spaces in the mdmp system?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so it works something like thtat:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      OPEN DATASET p_file FOR OUTPUT IN TEXT MODE ENCODING UTF-8 WITH BYTE-ORDER MARK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"MDMP (with ECC 6.0 by the way)&lt;/P&gt;&lt;P&gt;if charsize = 1.&lt;/P&gt;&lt;P&gt;*add missing spaces to the structure&lt;/P&gt;&lt;P&gt;*transfer strucutre to file&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*UNICODE&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;*just transfer struc to file -&amp;gt; no conversion needed anymore&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I thought mybe somehow this could work with the class CL_ABAP_CONV_OUT_CE. But until now I had no luck...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Normally I would think that if I'am creating a UTF-8 file this work is done automatically on the transfer command&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Sep 2009 08:01:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-dataset-in-utf8-problems-between-unicode-and-non-unicode/m-p/5977941#M1340331</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-02T08:01:25Z</dc:date>
    </item>
  </channel>
</rss>

