×tamp formatting

Q&A's, tips, howto's
Locked
joejoe
Posts: 173
Joined: Thu Jun 25, 2009 5:09 pm
Location: Denver, USA

×tamp formatting

Post 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!

Kirill
Posts: 90
Joined: Wed Oct 31, 2007 1:21 pm

Re: ×tamp formatting

Post by Kirill »

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

joejoe
Posts: 173
Joined: Thu Jun 25, 2009 5:09 pm
Location: Denver, USA

Re: ×tamp formatting

Post by joejoe »

Thank you Kirill,

Code: Select all

&timestamp=
made

Code: Select all

&timestamp=
Thanks for the magic direction!

Locked