# URL Decode node

**URL:** <https://forum.knime.com/t/url-decode-node/14816>\
**Category:** Community Extensions\
**Tags:** vernalis\
**Created:** [April 12, 2019, 11:07am UTC](https://forum.knime.com/t/url-decode-node/14816 "2019-04-12T11:07:47Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![mwiegand](https://forum-cdn.knime.com/user_avatar/forum.knime.com/mwiegand/32/66896_2.png) [@mwiegand](https://forum.knime.com/u/mwiegand)\
**Post date:** [April 12, 2019, 11:07am UTC](https://forum.knime.com/t/url-decode-node/14816/1 "2019-04-12T11:07:47Z")

</div>

I tried decoding encoded URL’s with a recursive loop but it hit’s the sound barrier pretty early when processing bigger amounts of URL’s. Any option to include an URL decode node?

---

<div class="post-metadata">

**Author:** ![Vernalis](https://forum-cdn.knime.com/user_avatar/forum.knime.com/vernalis/32/356_2.png) [@Vernalis](https://forum.knime.com/u/Vernalis)\
**Post date:** [April 12, 2019, 11:32am UTC](https://forum.knime.com/t/url-decode-node/14816/2 "2019-04-12T11:32:22Z")

</div>

Yes - in fact it was supposed to be in the same release as the URL Encode node. Due to vacations it will be a couple of weeks before that is out there. In the interim, if you are happy venturing into a Java Snippet node, then the following should work:

```
try {
    out_Decoded = URLDecoder.decode(c_URL, StandardCharsets.UTF_8.name());
} catch (UnsupportedEncodingException e) {
    // Should never happen!
    out_Decoded = null;
}

```

(With an input column ‘URL’ and a new output column ‘Decoded’)

Steve

---

<div class="post-metadata">

**Author:** ![mwiegand](https://forum-cdn.knime.com/user_avatar/forum.knime.com/mwiegand/32/66896_2.png) [@mwiegand](https://forum.knime.com/u/mwiegand)\
**Post date:** [April 12, 2019, 11:49am UTC](https://forum.knime.com/t/url-decode-node/14816/3 "2019-04-12T11:49:19Z")

</div>

Ha, tried the Java node but I am not familiar with Java at all I must admit. getting “cannot be resolved” for URLDecoder, StandardCharsets and UnsupportedEncodingException. What did I missed?

---

<div class="post-metadata">

**Author:** ![Vernalis](https://forum-cdn.knime.com/user_avatar/forum.knime.com/vernalis/32/356_2.png) [@Vernalis](https://forum.knime.com/u/Vernalis)\
**Post date:** [April 12, 2019, 11:55am UTC](https://forum.knime.com/t/url-decode-node/14816/4 "2019-04-12T11:55:19Z")

</div>

Sorry, my over-simplification there…

At the top of the snippet box, under neath the line `// Your custom imports` you need to add the following lines:

```
import java.net.URLDecoder;
import java.nio.charset.StandardCharsets;
import java.io.UnsupportedEncodingException;

```

(You can get this automatically by hitting CTRL+Space once you are part-way through typing the java class name, e.g. `URLDec`, `StandardChar` and so on in the snippet - beware though, sometimes there is a choice!)

You should end up with something like:

 ![image](https://forum-cdn.knime.com/uploads/default/original/2X/6/679b322c6b16e1e3ce3852b9329898ac40b29736.png)

(without the red underlining if you have set up the new output column and got the input column by double-clicking on it’s name in the Column List box)

hope that helps,

Steve

---

<div class="post-metadata">

**Author:** ![mwiegand](https://forum-cdn.knime.com/user_avatar/forum.knime.com/mwiegand/32/66896_2.png) [@mwiegand](https://forum.knime.com/u/mwiegand)\
**Post date:** [April 12, 2019, 3:18pm UTC](https://forum.knime.com/t/url-decode-node/14816/5 "2019-04-12T15:18:18Z")

</div>

Thanks a lot for the tips! The autocomplete is very helpful to find the corresponding library to import.

---

<div class="post-metadata">

**Author:** ![system](https://forum-cdn.knime.com/uploads/default/original/1X/ab3ccf34482a0329361734a18199390177204f15.png) [@system](https://forum.knime.com/u/system)\
**Post date:** [April 19, 2019, 3:18pm UTC](https://forum.knime.com/t/url-decode-node/14816/6 "2019-04-19T15:18:32Z")

</div>

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
