<?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 AW:encode string to URL in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/encode-string-to-URL/m-p/230778#M82584</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After looking around a while I believe there is no such function&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 25 Feb 2011 20:08:46 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-02-25T20:08:46Z</dc:date>
    <item>
      <title>encode string to URL</title>
      <link>https://community.qlik.com/t5/QlikView/encode-string-to-URL/m-p/230777#M82583</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I need to convert strings to be URI conform. That means replacing spaces by %20 and so on. Before I go back writing nested Replace statements, I wondered if there is something like an encodeURI() function? I haven't found anything similiar, but any hint or help is highly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;Florian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Feb 2011 14:50:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/encode-string-to-URL/m-p/230777#M82583</guid>
      <dc:creator />
      <dc:date>2011-02-25T14:50:19Z</dc:date>
    </item>
    <item>
      <title>AW:encode string to URL</title>
      <link>https://community.qlik.com/t5/QlikView/encode-string-to-URL/m-p/230778#M82584</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After looking around a while I believe there is no such function&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Feb 2011 20:08:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/encode-string-to-URL/m-p/230778#M82584</guid>
      <dc:creator />
      <dc:date>2011-02-25T20:08:46Z</dc:date>
    </item>
    <item>
      <title>AW:encode string to URL</title>
      <link>https://community.qlik.com/t5/QlikView/encode-string-to-URL/m-p/230779#M82585</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So I began to write some little "parser". Feel free to add your comments and ideas:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CharMap:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;Char, ASCII&lt;/P&gt;&lt;P&gt;" ", %20&lt;/P&gt;&lt;P&gt;(, %28&lt;/P&gt;&lt;P&gt;), %29&lt;/P&gt;&lt;P&gt;., %2E&lt;/P&gt;&lt;P&gt;-, %2D&lt;/P&gt;&lt;P&gt;ß, ss&lt;/P&gt;&lt;P&gt;ä, ae&lt;/P&gt;&lt;P&gt;ö, oe&lt;/P&gt;&lt;P&gt;ü, ue&lt;/P&gt;&lt;P&gt;Ä, Ae&lt;/P&gt;&lt;P&gt;Ö, Oe&lt;/P&gt;&lt;P&gt;Ü, Ue&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sub URIencoder(txt)&lt;/P&gt;&lt;P&gt;LET recNo = 1;&lt;/P&gt;&lt;P&gt;DO WHILE recNo &amp;lt; FieldValueCount('Char') + 1;&lt;/P&gt;&lt;P&gt;LET from = FieldValue('Char', $(recNo));&lt;/P&gt;&lt;P&gt;LET to = FieldValue('ASCII', $(recNo));&lt;/P&gt;&lt;P&gt;LET txt = Replace('$(txt)', '$(from)', '$(to)');&lt;/P&gt;&lt;P&gt;LET recNo = recNo + 1;&lt;/P&gt;&lt;P&gt;LOOP&lt;/P&gt;&lt;P&gt;End Sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP TABLE CharMap;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Feb 2011 12:07:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/encode-string-to-URL/m-p/230779#M82585</guid>
      <dc:creator />
      <dc:date>2011-02-28T12:07:21Z</dc:date>
    </item>
    <item>
      <title>Re: encode string to URL</title>
      <link>https://community.qlik.com/t5/QlikView/encode-string-to-URL/m-p/230780#M82586</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Florian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think the right way is using Jscript encodeURI function because there are endless of UTF chars especially if you have to deal with web sources ans URL parameters (like Twitter):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is an example for a Jscript macro code in QV:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;function encode (uri){&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return encodeURI(uri);&lt;/P&gt;&lt;P&gt;};&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Ralf&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jun 2011 20:05:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/encode-string-to-URL/m-p/230780#M82586</guid>
      <dc:creator>rbecher</dc:creator>
      <dc:date>2011-06-09T20:05:04Z</dc:date>
    </item>
    <item>
      <title>Re: encode string to URL</title>
      <link>https://community.qlik.com/t5/QlikView/encode-string-to-URL/m-p/230781#M82587</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Btw. there is a new solution I found to load a full encoding list and use it with MapSubString():&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/111059"&gt;String manipulation&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Mar 2014 16:49:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/encode-string-to-URL/m-p/230781#M82587</guid>
      <dc:creator>rbecher</dc:creator>
      <dc:date>2014-03-20T16:49:44Z</dc:date>
    </item>
  </channel>
</rss>

