logo
Home XtGem- Templates- XtScript- bottom
XtGemmanual

XtScript functions

rawurldecode

Decodes a rawurlencoded string

Syntax

[var $... = ]call rawurldecode $val=...[...] optional · ... your value

Notes

For strings with spaces encoded as + signs use urldecode

Example

<!--parser:xtscript-->
var $input =%21%20%22%C2%A3%24%25%5E%26%2A%2B 
var $output = call rawurldecode $val=$input
print input = $input<br />
print output = $output
<!--/parser:xtscript-->

Copy as text

Output reload

input = %21%20%22%C2%A3%24%25%5E%26%2A%2B
output = ! "£$%^&*+

Related

urlencode urldecode rawurlencode

XtGem manual · all sections

Powered by XtGem
About us Contact Forum top