<?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 Unsigned Unicode problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/unsigned-unicode-problem/m-p/12108570#M1973405</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;
  &lt;P&gt;I have a problem with unicode character,&lt;/P&gt;
  &lt;P&gt;Assume that I have a string: 'Tôi Dễ Thương'&lt;/P&gt;
  &lt;P&gt;I want to convert this string to: 'Toi De Thuong'&lt;/P&gt;
  &lt;P&gt;Could anybody has a function module or algorithm which cover to all case to resolve this problem.&lt;/P&gt;
  &lt;P&gt;Thanks so much&lt;/P&gt;</description>
    <pubDate>Fri, 09 Aug 2019 20:40:06 GMT</pubDate>
    <dc:creator>chau1995</dc:creator>
    <dc:date>2019-08-09T20:40:06Z</dc:date>
    <item>
      <title>Unsigned Unicode problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unsigned-unicode-problem/m-p/12108570#M1973405</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
  &lt;P&gt;I have a problem with unicode character,&lt;/P&gt;
  &lt;P&gt;Assume that I have a string: 'Tôi Dễ Thương'&lt;/P&gt;
  &lt;P&gt;I want to convert this string to: 'Toi De Thuong'&lt;/P&gt;
  &lt;P&gt;Could anybody has a function module or algorithm which cover to all case to resolve this problem.&lt;/P&gt;
  &lt;P&gt;Thanks so much&lt;/P&gt;</description>
      <pubDate>Fri, 09 Aug 2019 20:40:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unsigned-unicode-problem/m-p/12108570#M1973405</guid>
      <dc:creator>chau1995</dc:creator>
      <dc:date>2019-08-09T20:40:06Z</dc:date>
    </item>
    <item>
      <title>Re: Unsigned Unicode problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unsigned-unicode-problem/m-p/12108571#M1973406</link>
      <description>&lt;P&gt;There is the function module SCP_REPLACE_STRANGE_CHARS. Maybe not all characters are taken into account or not as you wish, but you may copy it and adapt it (and maybe simplify it).&lt;/P&gt;</description>
      <pubDate>Sat, 10 Aug 2019 08:12:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unsigned-unicode-problem/m-p/12108571#M1973406</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2019-08-10T08:12:53Z</dc:date>
    </item>
    <item>
      <title>Re: Unsigned Unicode problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unsigned-unicode-problem/m-p/12108572#M1973407</link>
      <description>&lt;P&gt;In case i want to remove vietnamese accents, If i use this fm, some case was not good, i mean it were disappeared character&lt;/P&gt;</description>
      <pubDate>Sat, 10 Aug 2019 19:23:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unsigned-unicode-problem/m-p/12108572#M1973407</guid>
      <dc:creator>chau1995</dc:creator>
      <dc:date>2019-08-10T19:23:06Z</dc:date>
    </item>
    <item>
      <title>Re: Unsigned Unicode problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unsigned-unicode-problem/m-p/12108573#M1973408</link>
      <description>&lt;P&gt;Please use the COMMENT button for comments, questions, adding details, etc., ANSWER is only to propose a solution, dixit SAP text at the right of the answer area: "Before answering You should only submit an answer when you are proposing a solution to the poster's problem"&lt;/P&gt;</description>
      <pubDate>Sat, 10 Aug 2019 22:03:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unsigned-unicode-problem/m-p/12108573#M1973408</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2019-08-10T22:03:32Z</dc:date>
    </item>
    <item>
      <title>Re: Unsigned Unicode problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unsigned-unicode-problem/m-p/12108574#M1973409</link>
      <description>&lt;P&gt;A simple solution is to list all possible characters and use &lt;A href="https://help.sap.com/doc/abapdocu_753_index_htm/7.53/en-US/index.htm?file=abaptranslate.htm"&gt;TRANSLATE&lt;/A&gt; (or &lt;A href="https://help.sap.com/doc/abapdocu_753_index_htm/7.53/en-US/index.htm?file=abentranslate_functions.htm"&gt;translate&lt;/A&gt; for ABAP 7.40 and above).&lt;/P&gt;&lt;P&gt;You may list all possible characters by looking at table TCPUCATTR, all characters associated to "A" can be found by looking for * CAPITAL LETTER A *, "a" by looking for * SMALL LETTER A *, etc.&lt;/P&gt;&lt;P&gt;This code lists the translation letters for TRANSLATE:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA c1 TYPE c LENGTH 1.
DATA x2 TYPE x LENGTH 2.
DATA(upper_lower) = sy-abcde &amp;amp;&amp;amp; to_lower( sy-abcde ).
SELECT * FROM tcpucattr
    WHERE charid LIKE '00%'
      AND attrkind = 'N'
      AND ( attr LIKE '%SMALL LETTER%' OR attr LIKE '%CAPITAL LETTER%' )
    INTO TABLE @DATA(tcpucattr_s).
DO 52 TIMES.
  DATA(letter) = substring( val = upper_lower off = sy-index - 1 len = 1 ).
  IF sy-index &amp;lt;= 26.
    DATA(pattern_attr) = |* CAPITAL LETTER { to_upper( letter ) } *|.
  ELSE.
    pattern_attr = |* SMALL LETTER { to_upper( letter ) } *|.
  ENDIF.
  DATA(letters) = ``.
  WRITE : / letter, ':'.
  LOOP AT tcpucattr_s ASSIGNING FIELD-SYMBOL(&amp;lt;tcpucattr&amp;gt;) WHERE attr CP pattern_attr.
    x2 = &amp;lt;tcpucattr&amp;gt;-charid+2.
    c1 = cl_abap_conv_in_ce=&amp;gt;uccp( x2 ).
    IF c1 &amp;lt;&amp;gt; letter.
      WRITE : c1 NO-GAP, letter NO-GAP.
    ENDIF.
  ENDLOOP.
ENDDO.&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;PS: characters of type "combining accent" can be simply removed (all with text "COMBINING" in TCPUCATTR).&lt;/P&gt;</description>
      <pubDate>Sat, 10 Aug 2019 23:09:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unsigned-unicode-problem/m-p/12108574#M1973409</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2019-08-10T23:09:04Z</dc:date>
    </item>
  </channel>
</rss>

