From 614c5d52410650a4439b8215432f112284ff4bc7 Mon Sep 17 00:00:00 2001 From: Chris Little Date: Fri, 4 Jan 2013 13:45:54 +0000 Subject: strip BOM, if present in USFM git-svn-id: https://www.crosswire.org/svn/sword-tools/trunk@410 07627401-56e2-0310-80f4-f8cd0041bdcd --- modules/python/usfm2osis.py | 2 ++ 1 file changed, 2 insertions(+) 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) -- cgit