& decode

Post Reply
gaurav.shetti
Posts: 119
Joined: Fri Feb 27, 2009 9:09 am

& decode

Post 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.
User avatar
John
Site Admin
Posts: 2597
Joined: Mon Apr 24, 2000 3:18 pm
Location: Cleveland, OH
Contact:

& decode

Post 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?
John Turnbull
Thunderstone Software
Post Reply