Merge branch 'master' of git.evergreen-ils.org:Evergreen into social
[evergreen-equinox.git] / Open-ILS / src / sql / Pg / 012.schema.vandelay.sql
index 476ee07..7841170 100644 (file)
@@ -309,8 +309,11 @@ CREATE OR REPLACE FUNCTION vandelay.add_field ( target_xml TEXT, source_xml TEXT
 
     use MARC::Record;
     use MARC::File::XML (BinaryEncoding => 'UTF-8');
+    use MARC::Charset;
     use strict;
 
+    MARC::Charset->assume_unicode(1);
+
     my $target_xml = shift;
     my $source_xml = shift;
     my $field_spec = shift;
@@ -386,8 +389,11 @@ CREATE OR REPLACE FUNCTION vandelay.strip_field ( xml TEXT, field TEXT ) RETURNS
 
     use MARC::Record;
     use MARC::File::XML (BinaryEncoding => 'UTF-8');
+    use MARC::Charset;
     use strict;
 
+    MARC::Charset->assume_unicode(1);
+
     my $xml = shift;
     my $r = MARC::Record->new_from_xml( $xml );