diff options
-rw-r--r-- | modules/perlconverters/usfm2osis.pl | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/perlconverters/usfm2osis.pl b/modules/perlconverters/usfm2osis.pl index af8fc04..0f53582 100644 --- a/modules/perlconverters/usfm2osis.pl +++ b/modules/perlconverters/usfm2osis.pl @@ -39,6 +39,8 @@ ######################################################################### +use utf8; + # Stores the script version and date $version = "1.7"; $date = "2009-10-26"; @@ -185,6 +187,9 @@ foreach $file (@files) { # Sets the initial value for the attribute "n" in cross-references. $nCR = @nCR [0]; + #delete BOM, if present + @filedata[0] =~ s/^//; + #encoding stuff for ($i = 0; $i < scalar(@filedata); $i++) { $line = @filedata[$i]; |