perl-unicode

Re: 2 Suprises w/5.8.0

2002-08-01 03:30:04
On Thu, 01 Aug 2002 09:22:52 +0100, Nick Ing-Simmons 
<nick(_dot_)ing-simmons(_at_)elixent(_dot_)com> said:

  > Andreas J. Koenig <andreas(_dot_)koenig(_at_)anima(_dot_)de> 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 
...

You're right, this code slipped in some day and isn't needed at all.
Thanks for the correction!

-- 
andreas

<Prev in Thread] Current Thread [Next in Thread>