<?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 replacing characters within a string in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/replacing-characters-within-a-string/m-p/160241#M34593</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My untested guess is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Replace(Field,'%20',' ') AS Field&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 Nov 2009 19:00:02 GMT</pubDate>
    <dc:creator>Miguel_Angel_Baeyens</dc:creator>
    <dc:date>2009-11-20T19:00:02Z</dc:date>
    <item>
      <title>replacing characters within a string</title>
      <link>https://community.qlik.com/t5/QlikView/replacing-characters-within-a-string/m-p/160240#M34592</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a field I am creating in the LOAD section of my script using various formulae.&lt;/P&gt;&lt;P&gt;I need to be able to interrogate a string and replace any instance of "%20" and replace with " ", for example.&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Nov 2009 18:53:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/replacing-characters-within-a-string/m-p/160240#M34592</guid>
      <dc:creator />
      <dc:date>2009-11-20T18:53:30Z</dc:date>
    </item>
    <item>
      <title>replacing characters within a string</title>
      <link>https://community.qlik.com/t5/QlikView/replacing-characters-within-a-string/m-p/160241#M34593</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My untested guess is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Replace(Field,'%20',' ') AS Field&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Nov 2009 19:00:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/replacing-characters-within-a-string/m-p/160241#M34593</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2009-11-20T19:00:02Z</dc:date>
    </item>
    <item>
      <title>replacing characters within a string</title>
      <link>https://community.qlik.com/t5/QlikView/replacing-characters-within-a-string/m-p/160242#M34594</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Matpj,&lt;/P&gt;&lt;P&gt;the function &lt;STRONG&gt;replace('abccde','cc','xyz')&lt;/STRONG&gt; returns '&lt;EM&gt;abxyzde&lt;/EM&gt;' doesn't work for you need?&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Nov 2009 19:03:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/replacing-characters-within-a-string/m-p/160242#M34594</guid>
      <dc:creator />
      <dc:date>2009-11-20T19:03:41Z</dc:date>
    </item>
    <item>
      <title>replacing characters within a string</title>
      <link>https://community.qlik.com/t5/QlikView/replacing-characters-within-a-string/m-p/160243#M34595</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Replace() will work for the given example "%20", but if you have multiple sequences to translate, take a look at MapSubstring(). That will allow you build a table of substitutions and apply it in one pass.&lt;/P&gt;&lt;P&gt;Are you trying to unescape escaped strings like URLs? If so, an even easier way is to use the VB Script Unescape function. In your macro module, create a function like this:&lt;/P&gt;&lt;P&gt;Function un (str)&lt;BR /&gt; un = Unescape(str)&lt;BR /&gt;End Function&lt;/P&gt;&lt;P&gt;And then use it in your script like this:&lt;/P&gt;&lt;P&gt;un(url) as FixedUrl&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Nov 2009 05:26:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/replacing-characters-within-a-string/m-p/160243#M34595</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2009-11-21T05:26:12Z</dc:date>
    </item>
  </channel>
</rss>

