newLISP Fan Club

Forum => newLISP in the real world => Topic started by: joejoe on October 16, 2020, 10:33:16 PM

Title: ×tamp formatting
Post by: joejoe on October 16, 2020, 10:33:16 PM
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!
Title: Re: ×tamp formatting
Post by: Kirill on October 17, 2020, 12:19:12 AM
Try escaping the ampersand as &. × is the multiplication cross sign...
Title: Re: ×tamp formatting
Post by: joejoe on October 17, 2020, 12:51:50 AM
Thank you Kirill,


&timestamp=

made &timestamp=

Thanks for the magic direction!