[drakma-devel] Bug handling bad html?

Jeffrey Cunningham jeffrey at cunningham.net
Sun Feb 25 19:34:06 UTC 2007


On Sun Feb 25, 2007 at 07:43:26PM +0200, Anton Vodonosov wrote:
> You misunderstand meaning of *substitution-char*.
> This is the character that will be used as a
> substitution for all badly encoded characters.
> 
> Thus, this example is equvalent to
> (setq flexi-streams::*provide-use-value-restart* t)
> (setf flexi-streams::*SUBSTITUTION-CHAR* \?)
> 
> You will have ? instead of any wrong character.
> 
> I.e. you can use the whatever mechanism you like:
> *substitution-char* for most cases or use-value-restart
> if you whant more control (for example you what to
> use ? as a substitution for even wrong byte sequence,
> and * for odd wrong byte sequence; count encoding errors,
> log them into file or something)



You're right, Anton, I did misunderstand the meaning. Thank you for
clearing that up.

--Jeff





More information about the Drakma-devel mailing list