1 # $Id: UnicodeExt.pm,v 1.5 2008-08-04 10:04:54 grant Exp $
3 package XML::SAX::PurePerl::Reader;
10 binmode($fh, ":bytes");
13 sub switch_encoding_stream {
14 my ($fh, $encoding) = @_;
15 binmode($fh, ":encoding($encoding)");
18 sub switch_encoding_string {
19 $_[0] = Encode::decode($_[1], $_[0]);