<?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: Problem with urlencode conversion in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-urlencode-conversion/m-p/7299772#M1533949</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot for your help, now it is working excelently.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Sep 2010 08:26:29 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-09-07T08:26:29Z</dc:date>
    <item>
      <title>Problem with urlencode conversion</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-urlencode-conversion/m-p/7299769#M1533946</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sorry for this question, but I was looking on Google    and probably I'm working with wrong key words, cause I cannot find any help for my problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my example I'm working with 1 special letter but it can be any "non ASCII" letter from UNICODE table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Novák is name of author of the book. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm sending some http request by POST method to ALEPH server (it is library system).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.mysite.com/X?op=find&amp;amp;&amp;amp;request=wau=novák&amp;amp;base=xxx01" target="test_blank"&gt;http://www.mysite.com/X?op=find&amp;amp;&amp;amp;request=wau=novák&amp;amp;base=xxx01&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Important part of my question is the letter á (czech letter):    request=wau= &lt;STRONG&gt;novák.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I need to send it in this form:   request=wau= &lt;STRONG&gt;nov%c3%a1k&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but after conversion by &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

 lv_string = cl_http_utility=&amp;gt;escape_url( i_uri ).

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've got that  result:     lv_string =  &lt;STRONG&gt;nov%e1k&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The same result I've got with FM WWW_URLENCODE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How I can get the HEX code with percents into my http request please? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot for any help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Petr&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Sep 2010 15:13:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-urlencode-conversion/m-p/7299769#M1533946</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-06T15:13:11Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with urlencode conversion</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-urlencode-conversion/m-p/7299770#M1533947</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Petr!&lt;/P&gt;&lt;P&gt;You can create a custom FM like 'ZWWW_URLENCODE' with the same code of the original. And force the variable :&lt;/P&gt;&lt;P&gt; gui_codepage to '4110'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Extract of the code :&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;* if we have a unicode codepage use utf-8
  IF gui_codepage EQ '4103' OR gui_codepage EQ '4102' OR
     gui_codepage EQ '4101' OR gui_codepage EQ '4100'.
    gui_codepage = '4110'.
  ENDIF.

*Begin Modification Petr
    gui_codepage = '4110'.
*End Modification Petr

* create a converter object using the frontend codepage
  encode = gui_codepage.
  conv = cl_abap_conv_out_ce=&amp;gt;create( encoding = encode ).&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will convert the URL to UTF-8.. so novák will be nov%c3%a1k.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards.&lt;/P&gt;&lt;P&gt;Claudio (Aparatey)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Sep 2010 18:35:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-urlencode-conversion/m-p/7299770#M1533947</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-06T18:35:38Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with urlencode conversion</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-urlencode-conversion/m-p/7299771#M1533948</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very very much, now it is working and SOLVED.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to give you points but I cannot find a yellow star.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Petr Hodbod on Sep 7, 2010 10:17 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Sep 2010 08:07:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-urlencode-conversion/m-p/7299771#M1533948</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-07T08:07:05Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with urlencode conversion</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-urlencode-conversion/m-p/7299772#M1533949</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot for your help, now it is working excelently.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Sep 2010 08:26:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-urlencode-conversion/m-p/7299772#M1533949</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-07T08:26:29Z</dc:date>
    </item>
  </channel>
</rss>

