Changeset 1528

Show
Ignore:
Timestamp:
08/20/06 21:16:53
Author:
miyagawa
Message:

use utf8::decode rather than Encode::decode_utf8

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/plagger/lib/Plagger/Walker.pm

    r1479 r1528  
    1616    my($self, $stuff) = @_; 
    1717    $self = $self->new( apply_keys => 1 ) unless ref $self; 
    18     $self->apply(sub { $_[0] = Encode::decode_utf8($_[0]) unless utf8::is_utf8($_[0]) })->($stuff); 
     18    $self->apply(sub { utf8::decode($_[0]) unless utf8::is_utf8($_[0]) })->($stuff); 
    1919} 
    2020