use Time::HiRes qw/time/;
use Getopt::Long;
use MARC::Batch;
-use MARC::File::XML;
+use MARC::File::XML (BinaryEncoding => 'UTF-8');
use MARC::Charset;
MARC::Charset->ignore_errors(1);
use Time::HiRes qw/time/;
use Getopt::Long;
use MARC::Batch;
-use MARC::File::XML;
+use MARC::File::XML (BinaryEncoding => 'UTF-8');
use MARC::Charset;
MARC::Charset->ignore_errors(1);
use strict;
use Error qw/:try/;
use MARC::Batch;
-use MARC::File::XML;
+use MARC::File::XML (BinaryEncoding => 'UTF-8');
use XML::LibXML;
use Getopt::Long;
use encoding 'utf8';
use Getopt::Long;
use MARC::Record;
use MARC::Charset;
-use MARC::File::XML;
+use MARC::File::XML (BinaryEncoding => 'UTF-8');
use Error qw/:try/;
MARC::Charset->assume_unicode(1);
use Error qw/:try/;
use MARC::Batch;
-use MARC::File::XML;
+use MARC::File::XML (BinaryEncoding => 'UTF-8');
use XML::LibXSLT;
use XML::LibXML;
use Unicode::Normalize;
use OpenILS::Application::Cat::AssetCommon;
use MARC::Record;
use MARC::Batch;
-use MARC::File::XML;
+use MARC::File::XML (BinaryEncoding => 'UTF-8');
my $U = 'OpenILS::Application::AppUtils';
use OpenSRF::Utils::Cache;
use MARC::Record;
use MARC::Batch;
-use MARC::File::XML;
+use MARC::File::XML (BinaryEncoding => 'UTF-8');
use MIME::Base64;
use Digest::MD5 qw/md5_hex/;
use OpenILS::Application::Acq::Financials;
use OpenILS::Utils::ZClient;
use MARC::Record;
-use MARC::File::XML;
+use MARC::File::XML (BinaryEncoding => 'UTF-8');
+use MARC::Charset;
use Unicode::Normalize;
use XML::LibXML;
use OpenSRF::Utils::Logger qw/$logger/;
use OpenILS::Utils::CStoreEditor q/:funcs/;
+MARC::Charset->assume_unicode(1);
+MARC::Charset->ignore_errors(1);
+
my $output = "usmarc";
my $U = 'OpenILS::Application::AppUtils';
my $log = 'OpenSRF::Utils::Logger';
use MARC::Record;
-use MARC::File::XML;
+use MARC::File::XML ( BinaryEncoding => 'UTF-8' );
sub circ_count {
my $self = shift;
use OpenILS::Utils::CStoreEditor qw/:funcs/;
use MARC::Batch;
use MARC::Record;
-use MARC::File::XML;
+use MARC::File::XML ( BinaryEncoding => 'UTF-8' );
use OpenILS::Utils::Fieldmapper;
use Time::HiRes qw(time);
use OpenSRF::Utils::Logger qw/$logger/;
use OpenSRF::Utils::Logger qw/$logger/;
use MARC::Record;
-use MARC::File::XML;
+use MARC::File::XML ( BinaryEncoding => 'UTF-8' );
use UNIVERSAL::require;
use OpenILS::Application::AppUtils;
use MARC::Record;
-use MARC::File::XML;
+use MARC::File::XML ( BinaryEncoding => 'UTF-8' );
my $log = 'OpenSRF::Utils::Logger';
my $U = 'OpenILS::Application::AppUtils';
use OpenSRF::Utils::Logger qw/$logger/;
use MARC::Record;
-use MARC::File::XML;
+use MARC::File::XML ( BinaryEncoding => 'UTF-8' );
use UNIVERSAL::require;
use OpenSRF::Utils::Logger qw/$logger/;
use MARC::Record;
-use MARC::File::XML;
+use MARC::File::XML ( BinaryEncoding => 'UTF-8' );
use MIME::Base64;
use Digest::MD5 qw/md5_hex/;
use OpenILS::Utils::CStoreEditor;
use MARC::Record;
-use MARC::File::XML;
+use MARC::File::XML ( BinaryEncoding => 'UTF-8' );
use UNIVERSAL::require;
use Time::HiRes qw/time/;
use base qw/Net::Server::PreFork/;
use MARC::Record;
use MARC::Batch;
-use MARC::File::XML;
+use MARC::File::XML ( BinaryEncoding => 'UTF-8' );
use MARC::File::USMARC;
use Data::Dumper;