Page 1 of 1

& decode

Posted: Fri Jul 02, 2010 9:20 am
by gaurav.shetti
Hi,

I am trying to send this information "Trinidad & Tobago" from an asp page to the vortex page. The issue here is, if i use encodeURIComponent it will convert the url to trinidad%20%26%20tobago
But the thunderstone variable will just set it to trinindad and ignore the other characters. If i use encodeURI, & will not be encoded and in the url it will be set as trinidad%20%&20tobago, and since & is a separator between variables how can i read the entire content which is being sent over.

& decode

Posted: Fri Jul 02, 2010 9:50 am
by John
The first way is correct, and does work for me, e.g. a simple test script:

<script language=vortex>
<a name=main>
$x
</a>
</script>

and fetched as:

http://SERVER/texis/tenc?x=trinidad%20%26%20tobago

prints out

trinidad & tobago

What are you doing with the variable in Vortex?