×tamp formatting

Started by joejoe, October 16, 2020, 10:33:16 PM

Previous topic - Next topic

joejoe

Hi,



When I do this from the nL command line interpreter:


> (println "&timestamp")
&timestamp
"&timestamp"


All good as expected.



When I am running it on a web server cgi script looking at it from my browser, I end up with this result:


×tamp

How do I preserve &timestamp if I am making a string, say to include in a url?



When the result is ×tamp instead of &timestamp in the url, things break.



It seems like when seen "&times", something is changing that to show × instead?



I have this at top of the cgi script:


(print "Content-Type: text/htmlrnrn")

Thanks very much!

Kirill

#1
Try escaping the ampersand as &. × is the multiplication cross sign...

joejoe

#2
Thank you Kirill,


&timestamp=

made &timestamp=

Thanks for the magic direction!