It'd be nice if CHECK = sub { ... } actually worked for decoding UTF-8, e.g.:
decode("UTF-8", $foo, sub { chr shift }) It'd be even nicer if CHECK could be a string, the name of an 8bit encoding to use as a fallback: decode("UTF-8", $foo, "latin1"); -- Met vriendelijke groet, Kind regards, Korajn salutojn, Juerd Waalboer: Perl hacker <[EMAIL PROTECTED]> <http://juerd.nl/sig> Convolution: ICT solutions and consultancy <[EMAIL PROTECTED]>