summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xmodules/python/usfm2osis.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/python/usfm2osis.py b/modules/python/usfm2osis.py
index 8d30b14..96cc6a5 100755
--- a/modules/python/usfm2osis.py
+++ b/modules/python/usfm2osis.py
@@ -1312,6 +1312,8 @@ def convertToOsis(sFile):
print(('WARNING: Encoding "' + encoding + '" unknown, processing ' + sFile + ' as UTF-8.'))
encoding = 'utf-8'
+ osis = osis.lstrip(unichr(0xFEFF))
+
# call individual conversion processors in series
osis = cvtPreprocess(osis, relaxedConformance)
osis = cvtRelaxedConformanceRemaps(osis, relaxedConformance)