Sophie

Sophie

distrib > Mageia > 7 > i586 > by-pkgid > 491f3f980b705f20a156caccb6ba598b > files > 27

perl-XML-SAX-1.0.0-3.mga7.noarch.rpm

# $Id$

package XML::SAX::PurePerl::Reader;
use strict;

use Encode ();

sub set_raw_stream {
    my ($fh) = @_;
    binmode($fh, ":bytes");
}

sub switch_encoding_stream {
    my ($fh, $encoding) = @_;
    binmode($fh, ":encoding($encoding)");
}

sub switch_encoding_string {
    $_[0] = Encode::decode($_[1], $_[0]);
}

1;