Andreas J. Koenig <[EMAIL PROTECTED]> writes:
>A scalar that is going to be passed to some extension, be it
>Compress::Zlib, Apache::Request or any extension that has no mention
>of Unicode in the manpage:
>
> if ($] > 5.007) {
> require Encode;
> utf8::upgrade($self->{CONTENT}); # make sure it is UTF-8 encoded
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Why is that step necessary? encode_utf8() should do that itself on the way ...
> $self->{CONTENT} = Encode::encode_utf8($self->{CONTENT}); # make octets
> }
>
--
Nick Ing-Simmons
http://www.ni-s.u-net.com/