openurl command should url encode passed url content ...

openurl command should url encode passed url content ...


Hi:

I have this command in the on Click section of my (test) Form ...
thisURL = "#View:Test_HTML_View?name=" + input.Name + "&time=" + input.Time;
openUrl(thisURL, "same window");


When I run it with alphanumeric values entered in the Name and Time fields, everything goes according to plan ... the (test) HTML View is displayed ... and the correct values are passed to it.

It even works when I enter a number of special characters ... like spaces < > ? . * @ ! " ; { } [ ] = ^ / ~

However, ZOHO Creator is not able to handle the following ...

a) if there is a single quote ( ' ) within the field contents, nothing happens ... Loading ... message displays for ever.

Note that the similar looking (french accent) character ( ` ) is fine.

b) if there is a & within the field contents, it is not "url encoded" by ZOHO Creator ... so it appears as a different field specification to the Browser.

c) if there is a % within the field contents, it is not passed to the HTML View ... appears as null

d) if you need to pass a \ ... you have to enter \\


I believe openurl should be checking for and "url encoding" these special characters ... as end users can not be expected to do this ... and sometimes may not even have the opportunities to do this.

Deluge Script developers could do this ... but the string processing functions in Deluge are so primitive that it would take a lot of unnecssary code (and time delay) to check each character for each of the problem characters.

This should be addressed as a matter of urgency ... as there are a lot of Irish names ... like O'Brien, O'Reilley etc. ... that can be in ZOHO Tables ... that will fail when passed as parameters to the HTML View.


Gaev