[flexi-streams-devel] recovering from flexi-stream-encoding-error

Anton Vodonosov vodonosov at mail.ru
Tue Nov 14 18:34:07 UTC 2006


Hi!

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.

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.

Regards,
-Anton
-------------- next part --------------
A non-text attachment was scrubbed...
Name: flexi.diff
Type: application/octet-stream
Size: 2818 bytes
Desc: not available
URL: <https://mailman.common-lisp.net/pipermail/flexi-streams-devel/attachments/20061114/cd089d1b/attachment.obj>


More information about the Flexi-streams-devel mailing list