<?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: CL_GUI_HTML_VIEWER  method load_data in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/cl-gui-html-viewer-method-load-data/m-p/6042607#M1351092</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;I have now tried to use only the charset parameter with ISO-8859-1 but it doesn't work, what can I put in the encoding parameter because there is no documentation in the method to show what kind of values are allowed for the parameters.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 17 Aug 2009 09:32:27 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-08-17T09:32:27Z</dc:date>
    <item>
      <title>CL_GUI_HTML_VIEWER  method load_data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cl-gui-html-viewer-method-load-data/m-p/6042602#M1351087</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;i am using the mentioned method to load a documentation as html, the problem is that I have several ä, ö, ü in the text which I can't display in the correct form, is there any possibility to display it ìn the right form?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get this sign for the ä = Ã¼&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Aug 2009 09:06:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cl-gui-html-viewer-method-load-data/m-p/6042602#M1351087</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-17T09:06:58Z</dc:date>
    </item>
    <item>
      <title>Re: CL_GUI_HTML_VIEWER  method load_data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cl-gui-html-viewer-method-load-data/m-p/6042603#M1351088</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I guess you need to use proper charset&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
call method r_html_viewer-&amp;gt;load_data
exporting
   ....
   charset = 'ISO-8859-2'  "your country specific charset here
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Aug 2009 09:20:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cl-gui-html-viewer-method-load-data/m-p/6042603#M1351088</guid>
      <dc:creator>MarcinPciak</dc:creator>
      <dc:date>2009-08-17T09:20:51Z</dc:date>
    </item>
    <item>
      <title>Re: CL_GUI_HTML_VIEWER  method load_data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cl-gui-html-viewer-method-load-data/m-p/6042604#M1351089</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Where can I found my country specific charset?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is ISO-8859-2 right for german?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Aug 2009 09:24:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cl-gui-html-viewer-method-load-data/m-p/6042604#M1351089</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-17T09:24:12Z</dc:date>
    </item>
    <item>
      <title>Re: CL_GUI_HTML_VIEWER  method load_data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cl-gui-html-viewer-method-load-data/m-p/6042605#M1351090</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;ISO-8859-1 should be sufficient for the German language (see [ISO/IEC 8859-1|http://en.wikipedia.org/wiki/ISO/IEC_8859-1])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Aug 2009 09:30:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cl-gui-html-viewer-method-load-data/m-p/6042605#M1351090</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2009-08-17T09:30:30Z</dc:date>
    </item>
    <item>
      <title>Re: CL_GUI_HTML_VIEWER  method load_data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cl-gui-html-viewer-method-load-data/m-p/6042606#M1351091</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;[Google says|http://a4esl.org/c/charset.html] for Western European countries it's &lt;STRONG&gt;ISO-8859-1&lt;/STRONG&gt; &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;But not sure if you also don't have to provide &lt;STRONG&gt;encoding&lt;/STRONG&gt; parameter in above method. Check with providing only charset first.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Aug 2009 09:30:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cl-gui-html-viewer-method-load-data/m-p/6042606#M1351091</guid>
      <dc:creator>MarcinPciak</dc:creator>
      <dc:date>2009-08-17T09:30:46Z</dc:date>
    </item>
    <item>
      <title>Re: CL_GUI_HTML_VIEWER  method load_data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cl-gui-html-viewer-method-load-data/m-p/6042607#M1351092</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;I have now tried to use only the charset parameter with ISO-8859-1 but it doesn't work, what can I put in the encoding parameter because there is no documentation in the method to show what kind of values are allowed for the parameters.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Aug 2009 09:32:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cl-gui-html-viewer-method-load-data/m-p/6042607#M1351092</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-17T09:32:27Z</dc:date>
    </item>
    <item>
      <title>Re: CL_GUI_HTML_VIEWER  method load_data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cl-gui-html-viewer-method-load-data/m-p/6042608#M1351093</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've newer used that too, so I am not sure. Try giving that &lt;STRONG&gt;ISO..&lt;/STRONG&gt; to &lt;EM&gt;encoding&lt;/EM&gt; instead of &lt;EM&gt;charset&lt;/EM&gt; .Also ensure these parameters are provided like&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
   type         = 'text'
   subtype      = 'html'
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If that doens't work try directly showing your html page with method &lt;STRONG&gt;SHOW_URL&lt;/STRONG&gt; without use of &lt;STRONG&gt;load_data&lt;/STRONG&gt; first.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You may also try giving internal abbreviation for codepage (4 digit number instead of character name)&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CALL FUNCTION 'SCP_CODEPAGE_BY_EXTERNAL_NAME'
  EXPORTING
    external_name = 'ISO-8859-2'
  IMPORTING
    sap_codepage  = codepage.

DATA: char_codepage.

char_codepage = codepage.   "then try passing CHAR_CODEPAGE as encoding or charset
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Marcin Pciak on Aug 17, 2009 11:56 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Aug 2009 09:49:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cl-gui-html-viewer-method-load-data/m-p/6042608#M1351093</guid>
      <dc:creator>MarcinPciak</dc:creator>
      <dc:date>2009-08-17T09:49:08Z</dc:date>
    </item>
    <item>
      <title>Re: CL_GUI_HTML_VIEWER  method load_data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cl-gui-html-viewer-method-load-data/m-p/6042609#M1351094</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello MArcin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;unfortunately it doesn't work, I have to use the method load_data as I nedd the url which I get from this method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have now solve it as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT l_t_html_page INTO l_r_html_page.&lt;/P&gt;&lt;P&gt;    REPLACE ALL OCCURRENCES OF 'Ü' IN l_r_html_page-tdline WITH 'Ü'.&lt;/P&gt;&lt;P&gt;    REPLACE ALL OCCURRENCES OF 'ü' IN l_r_html_page-tdline WITH 'ü'.&lt;/P&gt;&lt;P&gt;    REPLACE ALL OCCURRENCES OF 'Ö' IN l_r_html_page-tdline WITH 'Ö'.&lt;/P&gt;&lt;P&gt;    REPLACE ALL OCCURRENCES OF 'ö' IN l_r_html_page-tdline WITH 'ö'.&lt;/P&gt;&lt;P&gt;    REPLACE ALL OCCURRENCES OF 'Ä' IN l_r_html_page-tdline WITH 'Ä'.&lt;/P&gt;&lt;P&gt;    REPLACE ALL OCCURRENCES OF 'ä' IN l_r_html_page-tdline WITH 'ä'.&lt;/P&gt;&lt;P&gt;    REPLACE ALL OCCURRENCES OF 'ß' IN l_r_html_page-tdline WITH 'ß'.&lt;/P&gt;&lt;P&gt;    MODIFY l_t_html_page FROM l_r_html_page.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I don't know if this is the best way?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Aug 2009 09:59:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cl-gui-html-viewer-method-load-data/m-p/6042609#M1351094</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-17T09:59:11Z</dc:date>
    </item>
    <item>
      <title>Re: CL_GUI_HTML_VIEWER  method load_data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cl-gui-html-viewer-method-load-data/m-p/6042610#M1351095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry for repliyng so late but I faced issues with posting a reply having html tags here. &lt;/P&gt;&lt;P&gt;In below code you must place &lt;STRONG&gt;HTML&lt;/STRONG&gt; , &lt;STRONG&gt;BODY&lt;/STRONG&gt; and &lt;STRONG&gt;META&lt;/STRONG&gt; in b/w &lt;STRONG&gt;&amp;lt;&lt;/STRONG&gt;  &lt;STRONG&gt;&amp;gt;&lt;/STRONG&gt; brackets. As I mentioned this caused a big trouble to reply to this message when using them. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The solution itself works fine&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: html TYPE REF TO cl_gui_html_viewer.
DATA container TYPE REF TO cl_gui_custom_container.

DATA: l_doc_url(255) TYPE c.
DATA: html_table TYPE TABLE OF char50.

APPEND ' html  body  ÜüÖöÄäß   /body   /html ' TO html_table.  "you need to provide your html b/w  HMTL  BODY  ...  /BODY /HTML  tags

CALL SCREEN 900.


MODULE pbo OUTPUT.
  CREATE OBJECT container
    EXPORTING
      container_name     = 'CUSTOM_CONTROL'.

  CREATE OBJECT html
    EXPORTING
      parent             = container.


  CALL METHOD html-&amp;gt;load_data
    EXPORTING
      type         = 'text'
      subtype      = 'html'
    IMPORTING
      assigned_url = l_doc_url
    CHANGING
      data_table   = html_table.   "now this method will automatically append META  tags with correct charset (UTF-8) and hence will dipslay your German letters correctly. 
"without those  HTML  and  BODY  tags you will get those A1, as  META  tag can't be appended to HTML_TABLE correctly

  CALL METHOD html-&amp;gt;show_data
    EXPORTING
      url = l_doc_url.

ENDMODULE.          
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Aug 2009 14:02:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cl-gui-html-viewer-method-load-data/m-p/6042610#M1351095</guid>
      <dc:creator>MarcinPciak</dc:creator>
      <dc:date>2009-08-17T14:02:30Z</dc:date>
    </item>
    <item>
      <title>Re: CL_GUI_HTML_VIEWER  method load_data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cl-gui-html-viewer-method-load-data/m-p/6042611#M1351096</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Marcin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I ahev already done it with the mentioned replace syntax from me. So it works fine with this. But thank you for you help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Aug 2009 14:58:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cl-gui-html-viewer-method-load-data/m-p/6042611#M1351096</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-17T14:58:00Z</dc:date>
    </item>
  </channel>
</rss>

