On Sun Feb 25, 2007 at 07:00:03PM +0200, Anton Vodonosov wrote:
Hi, Jeff.
"Signaling an error" means in this case that work can be proceeded.
(setq *provide-use-value-restart* t)
(handler-bind ((flexi-stream-encoding-error (lambda (condition)
(use-value \?)))) (drakma:http-request("http://bad-host/bad-page.html")))
This is example from flexi-stream documentation.
You can easy get "the best approximation of the content" using drakma, but with more control. So it is unclear to my, what problems you have.
-Anton
Hi Anton,
Thanks for the help. Will the example above work for any bad charactor, or only the one set by
(setf flexi-streams::*SUBSTITUTION-CHAR* (code-char #xA0))
The only example I've run across is the site I mentioned, but it seems like the possibilities for bad html are endless.
--Jeff