<doc>
  <legacy_id>1249</legacy_id>
  <name>URLDecode</name>
  <type>function</type>
  <syntax>
    <example>the URLDecode of <i>formString</i></example>
    <example>URLDecode(<i>formString</i>)</example>
  </syntax>
  <library></library>
  <objects>
  </objects>
  <synonyms>
  </synonyms>
  <classification>
    <category>Text and Data Processing</category>
    <category>Networks &amp; Communication</category>
  </classification>
  <references>
    <command tag="post">post Command</command>
    <function tag="baseConvert">baseConvert Function</function>
    <function tag="charToNum">charToNum Function</function>
    <property tag="httpHeaders">httpHeaders Property</property>
    <function tag="macToISO">macToISO Function</function>
    <function tag="decompress">decompress Function</function>
    <function tag="arrayDecode">arrayDecode Function</function>
  </references>
  <history>
    <introduced version="1.0">Added.</introduced>
  </history>
  <platforms>
    <mac/>
    <windows/>
    <linux/>
    <ios/>
    <android/>
  </platforms>
  <classes>
    <desktop/>
    <server/>
    <web/>
    <mobile/>
  </classes>
  <security>
  </security>
  <summary><glossary tag="return">Returns</glossary> the <glossary tag="decode">decoded</glossary> form of a <keyword tag="URL">URL</keyword> that was <glossary tag="encode">encoded</glossary> for posting to an <keyword tag="http">HTTP</keyword> <glossary tag="server">server</glossary>.</summary>
  <examples>
    <example>URLDecode("A+B%2F1+2") <code><i>-- returns "A B/1 2"</i></code></example>
    <example>put URLDecode(field "Test URL") after URLToCheck</example>
  </examples>
  <description>
    <p>Use the <b>URLDecode</b> <control_st tag="function">function</control_st> to <glossary tag="decode">decode</glossary> a <keyword tag="URL">URL</keyword> that has been sent by another system.</p><p/><p><b>Parameters:</b></p><p>The <i>formString</i> is any <keyword tag="string">string</keyword>, or any <glossary tag="expression">expression</glossary> that <glossary tag="evaluate">evaluates</glossary> to a <keyword tag="string">string</keyword>.</p><p/><p><b>Value:</b></p><p>The <b>URLDecode</b> <control_st tag="function">function</control_st> <glossary tag="return">returns</glossary> the <i>formString</i> with plus <glossary tag="sign">signs</glossary> "<code>+</code>" converted to spaces and characters in the form<code> %NN </code>converted to the ASCII equivalent of the <glossary tag="hexadecimal">hexadecimal</glossary> number <i>NN</i>.</p><p/><p><b>Comments:</b></p><p>When the <b>URLDecode</b> function encounters a percent sign (<code>%</code>), it treats the next two characters as <glossary tag="hexadecimal">hexadecimal</glossary> digits. (If one of the <keyword tag="characters">characters</keyword> is not a <glossary tag="hexadecimal">hexadecimal</glossary> digit, it's treated as a zero.) The number is converted to its <keyword tag="character">character</keyword> equivalent, using the <glossary tag="character set">character set</glossary> currently in use.</p>
  </description>
</doc>