forked from livecode/livecode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathURLDecode.xml
More file actions
53 lines (53 loc) · 3 KB
/
Copy pathURLDecode.xml
File metadata and controls
53 lines (53 loc) · 3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<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 & 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>