[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [cobalt-users] Off-Topic Question about HTML code from CGI
- Subject: RE: [cobalt-users] Off-Topic Question about HTML code from CGI
- From: "Ian" <ian@xxxxxxxxxxxxxxxxxxxx>
- Date: Tue May 28 15:38:02 2002
- List-id: Mailing list for users to share thoughts on Sun Cobalt products. <cobalt-users.list.cobalt.com>
> Not possible. HTTP is not intended to allow servers to force browsers
> into certain specific behaviors. Attempts to do so (meta-redirects,
> javascript popups, etc.) have been controversial and/or 'engineered
> around' (witness Moz's plethora of javascript controls for specifically
> those sort of sociopathic actions)
>
> A better solution is to build your cgi to accept . and translate
> it into '.'. IIRC, in perl this can be accomplished by:
>
> s/&#[0-9]+;/pack("c", $1);
> s/&[0-9]+;/pack("c", hex($1));
Thanks for the idea Tim, but not a feasible solution as the results are
being received by an outside affiliate, and they take receipt of this
information with '.' not '.', so cant get them to change how they do it
for everyone else just for this set of scripts.
If I write a basic HTML page and place '.' into it and preview it, it shows
in the source as a '.' not the hex version, so is there anyway of having my
script do its thing as normal and then conducting some sort of search and
replace within the string to replace the hex '.' with a '.'
Surely that is achievable wouldnt you say? and would not affect anything
else.
Ian