<?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: Unicode in text edit CL_GUI_TEXTEDIT in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-in-text-edit-cl-gui-textedit/m-p/6718129#M1454947</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;@Venkat:&lt;/P&gt;&lt;P&gt;Thanks. I read this thread before.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@Sandra:&lt;/P&gt;&lt;P&gt;You can test with the program SAPTEXTEDIT_TEST_EVENTS for the following phrase "nhà cung cấp" (it means the supplier).&lt;/P&gt;&lt;P&gt;You will see the upper textedit displaying the text incorrectly, but the lower textedit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks all for your replies.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Mar 2010 03:01:17 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-03-24T03:01:17Z</dc:date>
    <item>
      <title>Unicode in text edit CL_GUI_TEXTEDIT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-in-text-edit-cl-gui-textedit/m-p/6718124#M1454942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guru,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used the class CL_GUI_TEXTEDIT to input text, but I cannot type unicode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I checked the sample program SAPTEXTEDIT_TEST_EVENTS. The upper text edit, I cannot type unicode, but the lower text edit, I can.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could anyone explain me why this happens?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Mar 2010 16:26:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-in-text-edit-cl-gui-textedit/m-p/6718124#M1454942</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-22T16:26:15Z</dc:date>
    </item>
    <item>
      <title>Re: Unicode in text edit CL_GUI_TEXTEDIT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-in-text-edit-cl-gui-textedit/m-p/6718125#M1454943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What do you mean by Unicode character (as all characters are part of unicode). Could you give one example, and tell us what you get when you type this "unicode character". I don't know what happens but the 2 controls are exactly the same, so that's really weird.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Mar 2010 23:06:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-in-text-edit-cl-gui-textedit/m-p/6718125#M1454943</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2010-03-22T23:06:53Z</dc:date>
    </item>
    <item>
      <title>Re: Unicode in text edit CL_GUI_TEXTEDIT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-in-text-edit-cl-gui-textedit/m-p/6718126#M1454944</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I knew the reason. If you use the language that has the accents (for ex: Vietnamese), when you type in textedit, it does not display correctly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The reason stays in the parameter WORDWRAP_MODE of CONSTRUCTOR method (should use 0 or 1, but 2).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I close this thread.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Kebab Monsieur on Mar 23, 2010 11:33 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Mar 2010 10:33:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-in-text-edit-cl-gui-textedit/m-p/6718126#M1454944</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-23T10:33:04Z</dc:date>
    </item>
    <item>
      <title>Re: Unicode in text edit CL_GUI_TEXTEDIT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-in-text-edit-cl-gui-textedit/m-p/6718127#M1454945</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I couldn't find any information in SAP marketplace about a problem with WORDWRAP_MODE.&lt;/P&gt;&lt;P&gt;Check the SAP notes (for example Note 766995 - CNDP/text edit: Characters are truncated on Unicode systems)&lt;/P&gt;&lt;P&gt;and make sure to use the latest SAPGUI.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Mar 2010 14:02:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-in-text-edit-cl-gui-textedit/m-p/6718127#M1454945</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2010-03-23T14:02:51Z</dc:date>
    </item>
    <item>
      <title>Re: Unicode in text edit CL_GUI_TEXTEDIT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-in-text-edit-cl-gui-textedit/m-p/6718128#M1454946</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Refer to link below for the info:&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="4797269"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Venkat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Mar 2010 14:06:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-in-text-edit-cl-gui-textedit/m-p/6718128#M1454946</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-23T14:06:09Z</dc:date>
    </item>
    <item>
      <title>Re: Unicode in text edit CL_GUI_TEXTEDIT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-in-text-edit-cl-gui-textedit/m-p/6718129#M1454947</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;@Venkat:&lt;/P&gt;&lt;P&gt;Thanks. I read this thread before.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@Sandra:&lt;/P&gt;&lt;P&gt;You can test with the program SAPTEXTEDIT_TEST_EVENTS for the following phrase "nhà cung cấp" (it means the supplier).&lt;/P&gt;&lt;P&gt;You will see the upper textedit displaying the text incorrectly, but the lower textedit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks all for your replies.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Mar 2010 03:01:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-in-text-edit-cl-gui-textedit/m-p/6718129#M1454947</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-24T03:01:17Z</dc:date>
    </item>
    <item>
      <title>Re: Unicode in text edit CL_GUI_TEXTEDIT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-in-text-edit-cl-gui-textedit/m-p/6718130#M1454948</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Interesting. I've tested with report SAPTEXTEDIT_TEST_EVENTS as you suggested on an ECC 6.0 box and the text also got displayed incorrectly. To be more specific, in the upper text edit control the ấ character gets displayed as a rectangular box, whereas the lower text control shows all characters correctly. Interestingly enough, when I export the contents of the upper text control to a local file and use &lt;EM&gt;Notepad&lt;/EM&gt; to look at it, all characters are displayed correctly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tried to search OSS, but couldn't really find anything useful. I came across OSS note [766995|https://service.sap.com/sap/support/notes/766995], which Sandra mentioned, but this is not applicable (only up to basis 6.40). The program coding didn't really show much differences.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you saying that you can fix it in your own coding if you change the wordwrap parameter as you described?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, I tried to pasted lots of Chinese text from the forums here into the text control. None of the characters got messed up, only the ấ (Unicode code point U+1EA5) showed this behavior (might be others, but I didn't ran into any other issues with my test samples).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I appreciate if you could keep us updated on this weird behavior.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers, harald&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Mar 2010 05:12:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-in-text-edit-cl-gui-textedit/m-p/6718130#M1454948</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-24T05:12:19Z</dc:date>
    </item>
    <item>
      <title>Re: Unicode in text edit CL_GUI_TEXTEDIT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-in-text-edit-cl-gui-textedit/m-p/6718131#M1454949</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thx for the info. I also have the same weird behavior (as detailed by Harald) with SAPGUI 7.1 SP 13, and SAP Basis 7.0 SP 13, my computer has French_France locale.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gotcha! when you use wordwrap_at_fixed_position mode, the textedit control displays the characters in a fixed font by default (Courier New in my case, that &lt;STRONG&gt;does not&lt;/STRONG&gt; contain Vietnamese characters). When you use one of the 2 other modes, it displays in a proportional font (Arial in my case, that &lt;STRONG&gt;does&lt;/STRONG&gt; contain Vietnamese characters).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You may make it work if you change the SAPGUI option (alt-F12) Character Set to Vietnamese. I guess SAP automatically chooses a font that contains the Vietnamese characters (Tahoma in my case, I don't know why it doesn't choose Arial as it also contains Vietnamese characters, as it did in the case above).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sandra&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Sandra Rossi on Mar 24, 2010 2:22 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Mar 2010 10:52:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-in-text-edit-cl-gui-textedit/m-p/6718131#M1454949</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2010-03-24T10:52:29Z</dc:date>
    </item>
    <item>
      <title>Re: Unicode in text edit CL_GUI_TEXTEDIT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-in-text-edit-cl-gui-textedit/m-p/6718132#M1454950</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Sandra,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good observation (I completely missed the difference in the fonts) and good information on switching the character set. It's actually nice to see with program SAPTEXTEDIT_TEST_2, where one can toggle between fixed font and proportional font.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I must admit the handling of the special characters is still a bit of a mystery to me. E.g. I have the Unicode option enabled and in a simple test report where I used a WRITE statement to print special characters (chinese, etc.) SAP automatically switched to a font that could display the characters. Guess the problem is that the text edit control has to settle on one font and all non-proportional fonts are basically lacking the more "exotic" characters. Should probably do some reading on how SAPgui handles all this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the update.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers, harald&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Mar 2010 05:08:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-in-text-edit-cl-gui-textedit/m-p/6718132#M1454950</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-25T05:08:16Z</dc:date>
    </item>
  </channel>
</rss>

