On Wed, Oct 09, 2002 at 09:13:39AM +0100, Nick Ing-Simmons wrote:
Counter-intuitive it may be, you can pass extra 'tips' to that thingy
like....
my $e = find_encoding('MIME-Header');
$e->{charset} = ISO-8859-1; # or $e->charset('ISO-8859-1') if we
define a method
my $encoded = $e->encode($str); # now uses =?ISO-8859-1?B?...
Despite Nick C's speed comments it may make sense to allow optional args
to encode as well.
which ones were they? I seem to be obsessed with speed currently, so I
doubt I can find them by searching for "speed". And I can't remember why
I might have suggested that allowing optional arguments would induce
serious slowdown. (by implication even when no optional arguments are used)
Nicholas Clark
PS shameless plug for optimising your perl code talk:
http://www.ccl4.org/~nick/P/Fast_Enough/