[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] Off-Topic Question about HTML code from CGI



> Is there anyone who knows how to force it so that the browser does not
> convert the . into .

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));

tim

-- 
Mechanical Engineers build weapons.  Civil Engineers build targets.