Page 1 of 1

×tamp formatting

Posted: Sat Oct 17, 2020 5:33 am
by joejoe
Hi,

When I do this from the nL command line interpreter:

Code: Select all

> (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:

Code: Select all

×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:

Code: Select all

(print "Content-Type: text/html\r\n\r\n")
Thanks very much!

Re: ×tamp formatting

Posted: Sat Oct 17, 2020 7:19 am
by Kirill
Try escaping the ampersand as &. × is the multiplication cross sign...

Re: ×tamp formatting

Posted: Sat Oct 17, 2020 7:51 am
by joejoe
Thank you Kirill,

Code: Select all

&timestamp=
made

Code: Select all

&timestamp=
Thanks for the magic direction!