convert utf-8 << and >> into ASCII
authorDobrica Pavlinusic <dpavlin@rot13.org>
Sat, 2 May 2015 22:48:25 +0000 (00:48 +0200)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Sat, 2 May 2015 22:48:25 +0000 (00:48 +0200)
scripts/aleph2iso.pl

index b058008..1e8ffcf 100755 (executable)
@@ -31,6 +31,8 @@ $marc = new_marc();
 
 while (<$m21>) {
        chomp;
+       s/\xC2\x98/<</g;
+       s/\xC2\x9C/>>/g;
        my ( $id, $rest ) = split(/\s/, $_, 2);
        my ( $fffii, $sf ) = split(/\s+L\s+/,$rest,2);