On Tue, 14 Nov 2006 20:34:07 +0200, "Anton Vodonosov" <vodonosov(a)mail.ru> wrote:
> It sometimes necessary to recover from flexi-stream-encoding-error.
>
> For example, it's inconvenient now to use drakma for sites with
> broken utf encoding (like this livejournal page
> http://hzweiblum.livejournal.com/)
>
> I can see this page in my browser (with ? instead of badly encoded
> chars), but (http-request "http://hzweiblum.livejournal.com/") fails
> signaling flexi-stream-encoding-error.
Hmm, works for me.
> It will be good to have possibility to supply a character that will
> be used as a substitution for invalid byte sequence.
>
> use-value restart is added to the get-char-code function in the
> attached patch.
I've added your code to the new release. See also the new special
variable *SUBSTITUTION-CHAR*.
Thanks,
Edi.
ChangeLog:
Version 0.7.2
2006-11-06
Removed unnecessary CHECK-EOF-NO-HANG also for in-memory streams (see 0.5.8)
Download:
http://weitz.de/files/flexi-streams.tar.gz
Cheers,
Edi.