From ef1228eb329ec8ddcd5fddbc4b89f59355fc107b Mon Sep 17 00:00:00 2001 From: blitzmann Date: Sun, 3 Jan 2016 13:24:05 -0500 Subject: [PATCH] Ensure that utf-8 is tested when importing fits --- service/fit.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/service/fit.py b/service/fit.py index f76fb3e91..1bd027486 100644 --- a/service/fit.py +++ b/service/fit.py @@ -867,7 +867,7 @@ class Fit(object): if codec_found is None: logger.warn("Unicode BOM not found in file %s.", path) - attempt_codecs = (defcodepage, "utf-16", "cp1252") + attempt_codecs = (defcodepage, "utf-8", "utf-16", "cp1252") for page in attempt_codecs: try: logger.warn("Attempting to decode file %s using %s page.", path, page)