From edi@agharta.de Tue Jan 30 02:52:52 2007 From: Edi Weitz To: drakma-devel@common-lisp.net Subject: Re: [drakma-devel] drakma vs. http://popurls.com Date: Tue, 30 Jan 2007 08:52:45 +0100 Message-ID: In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============4949787852339671887==" --===============4949787852339671887== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable On Mon, 29 Jan 2007 18:20:17 -0800, Chris Dean wrote: > The problem is that I regularly download web pages and many of them > are poorly formed. I'd like my software to be permissive and return > something reasonable. Sure, I agree. > Drakma is nicely designed and I'd like to keep using it. If I were > to add this "feature" of less-strict UTF-8 where should I do that? > > I could modify (define-char-reader (stream flexi-utf-8-input-stream) > ...) in some clever way I suppose. My hope is that FLEXI-STREAMS is already "flexible" enough to deal with this: CL-USER 22 > (drakma:http-request "http://zappa.agharta.de/test.html") Error: Unexpected value #xF6 in UTF-8 sequence. 1 (abort) Return to level 0. 2 Return to top loop level 0. Type :b for backtrace, :c