<?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: URL encode in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/URL-encode/m-p/2247724#M32816</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;thats a really old post, but i ran into the same problem and want to share my solution.&lt;/P&gt; 
&lt;P&gt;User often choose weird filenames, thats why i want to handle it this way.&lt;/P&gt; 
&lt;P&gt;It seems that the encode methode is not really designed to encode a URL in the way we need it here for WebDAV.&lt;/P&gt; 
&lt;P&gt;For example, a space in filename will be encoded to "+" instead of "%20". I searched a lot and at the end i give up and use a little workaround.&lt;/P&gt; 
&lt;P&gt;Important thing: Don't encode the entire URL, in my case i encode the filename only and it works.&lt;/P&gt; 
&lt;PRE&gt;globalMap.put("URI",java.net.URLEncoder.encode(((String)globalMap.get("Filename")),"UTF-8").replace("+", "%20"))&lt;/PRE&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="webdav.png" style="width: 999px;"&gt;&lt;IMG src="https://yutwg22796.i.lithium.com/t5/image/serverpage/image-id/17464i8CD1E1C78BDFD207/image-size/large?v=1.0&amp;amp;px=999" title="webdav.png" alt="webdav.png" /&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="webdav2.png" style="width: 778px;"&gt;&lt;IMG src="https://yutwg22796.i.lithium.com/t5/image/serverpage/image-id/17465i7F9CD1860F126004/image-size/large?v=1.0&amp;amp;px=999" title="webdav2.png" alt="webdav2.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;regards&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Lars&lt;/P&gt;</description>
    <pubDate>Thu, 21 Mar 2019 10:40:30 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-03-21T10:40:30Z</dc:date>
    <item>
      <title>URL encode</title>
      <link>https://community.qlik.com/t5/Talend-Studio/URL-encode/m-p/2247722#M32814</link>
      <description>hi,&lt;BR /&gt;  i will be getting a value from database and put the value in the url of the FileFetch step and downloading the file.&lt;BR /&gt;will it be possible to encode url for the value fetched from the database. &lt;BR /&gt;please help.&lt;BR /&gt;thanks&lt;BR /&gt;jayanth</description>
      <pubDate>Sat, 16 Nov 2024 14:18:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/URL-encode/m-p/2247722#M32814</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T14:18:14Z</dc:date>
    </item>
    <item>
      <title>Re: URL encode</title>
      <link>https://community.qlik.com/t5/Talend-Studio/URL-encode/m-p/2247723#M32815</link>
      <description>Don't know why you want to encode the URL for tFileFetch, but here's how it should work:&lt;BR /&gt;Put &lt;B&gt;java.net.URLEncoder.encode(yourString, "UTF-8")&lt;/B&gt; around the string you want to encode. Tested inside a tMap, works fine (for example "&lt;A href="http://www.test.de/index.php?t=1&amp;amp;m=2" target="_blank" rel="nofollow noopener noreferrer"&gt;www.test.de/index.php?t=1&amp;amp;m=2&lt;/A&gt;" becomes "www.test.de%2Findex.php%3Ft%3D1%26m%3D2").&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Theo</description>
      <pubDate>Fri, 11 Jul 2008 13:43:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/URL-encode/m-p/2247723#M32815</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2008-07-11T13:43:16Z</dc:date>
    </item>
    <item>
      <title>Re: URL encode</title>
      <link>https://community.qlik.com/t5/Talend-Studio/URL-encode/m-p/2247724#M32816</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;thats a really old post, but i ran into the same problem and want to share my solution.&lt;/P&gt; 
&lt;P&gt;User often choose weird filenames, thats why i want to handle it this way.&lt;/P&gt; 
&lt;P&gt;It seems that the encode methode is not really designed to encode a URL in the way we need it here for WebDAV.&lt;/P&gt; 
&lt;P&gt;For example, a space in filename will be encoded to "+" instead of "%20". I searched a lot and at the end i give up and use a little workaround.&lt;/P&gt; 
&lt;P&gt;Important thing: Don't encode the entire URL, in my case i encode the filename only and it works.&lt;/P&gt; 
&lt;PRE&gt;globalMap.put("URI",java.net.URLEncoder.encode(((String)globalMap.get("Filename")),"UTF-8").replace("+", "%20"))&lt;/PRE&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="webdav.png" style="width: 999px;"&gt;&lt;IMG src="https://yutwg22796.i.lithium.com/t5/image/serverpage/image-id/17464i8CD1E1C78BDFD207/image-size/large?v=1.0&amp;amp;px=999" title="webdav.png" alt="webdav.png" /&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="webdav2.png" style="width: 778px;"&gt;&lt;IMG src="https://yutwg22796.i.lithium.com/t5/image/serverpage/image-id/17465i7F9CD1860F126004/image-size/large?v=1.0&amp;amp;px=999" title="webdav2.png" alt="webdav2.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;regards&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Lars&lt;/P&gt;</description>
      <pubDate>Thu, 21 Mar 2019 10:40:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/URL-encode/m-p/2247724#M32816</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-03-21T10:40:30Z</dc:date>
    </item>
  </channel>
</rss>

